Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Piotr Gawron
minerva-scripts
Commits
e7262419
Commit
e7262419
authored
Jan 08, 2020
by
Piotr Gawron
Browse files
don't print uid of backup user
parent
11af4266
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/backup.sh
View file @
e7262419
...
...
@@ -33,7 +33,7 @@ cd $BACKUP_DIR/tmp
tar
-zcf
$BACKUP_FILE
*
#change owner of backup file only if user exists
id
-u
$BACKUP_USER
id
-u
$BACKUP_USER
>
/dev/null
status
=
$?
[
$status
-eq
0
]
&&
chown
$BACKUP_USER
$BACKUP_FILE
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment