From 95b088155c658416bff6222ce463fb937859e3d4 Mon Sep 17 00:00:00 2001 From: simono41 Date: Tue, 12 Jun 2018 00:32:01 +0200 Subject: [PATCH] admin_fix --- aurupdater.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aurupdater.sh b/aurupdater.sh index 88dc930..e2604ef 100755 --- a/aurupdater.sh +++ b/aurupdater.sh @@ -2,6 +2,12 @@ set -x +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" 1>&2 + sudo "$0" "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9" + exit 0 +fi + username="user1" echo "Durchsuche auf neue Packete indem fremde Packete angezeigt werden!!!"