From 6efd9d6fc73cb5f119627941d46c1525b78802e5 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Tue, 14 Feb 2017 13:22:18 -0600 Subject: [PATCH] Remove check for root Snapper may not actually require it depending on how the user set it up, and if this is run from pacman (as it should be), it will always be run as root --- scripts/snap-pac | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/snap-pac b/scripts/snap-pac index e81817e..4116768 100755 --- a/scripts/snap-pac +++ b/scripts/snap-pac @@ -58,7 +58,6 @@ 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'."