Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ian Eiloart
Sympl
Commits
0e749ae0
Commit
0e749ae0
authored
Jul 31, 2019
by
Paul Cammish
Browse files
Force backups to be run as root user, so we get all the files
parent
9d11fc4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
backup/backup.d/pre-backup.d/00-check-root
0 → 100755
View file @
0e749ae0
#!/bin/bash
if
[
$EUID
!=
0
]
;
then
echo
"Sorry, backups must be run as root. Run
\`
sudo backup2l -b
\`
to take a backup."
exit
1
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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