Revert "no need to check for root, since permissions will be checked."
This reverts commit 39bc6ea222.
This commit is contained in:
parent
39bc6ea222
commit
9a8c20ce1a
1 changed files with 1 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ trap kill_exit SIGTERM SIGINT
|
|||
|
||||
source "$SNAPPER_CONFIG_FILE"
|
||||
|
||||
[[ $EUID -ne 0 ]] && die "Script must be run as root."
|
||||
[[ ! -d /var/run/dbus ]] && die "No dbus available. Are you in a chroot environment?"
|
||||
[[ $# -ne 1 ]] && die "Only one argument should be passed to this script."
|
||||
[[ $1 != "pre" ]] && [[ $1 != "post" ]] && die "First argument should either be 'pre' or 'post'."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue