]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Minor changes in scripts/create-pdns-zones-from-files
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 30 Nov 2022 09:29:10 +0000 (10:29 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 30 Nov 2022 09:29:10 +0000 (10:29 +0100)
scripts/create-pdns-zones-from-files

index d158aa4a24b2f2fea9ea44903b1d8023734fa6a8..0bee14f9d1e9e02df0497d9aacb70d65f8ce467a 100755 (executable)
@@ -133,10 +133,7 @@ get_options() {
         exit 1
     fi
 
-    if [[ $(id -u -n) != "root" ]] ; then
-        error "You must ${RED}be root${NORMAL} to execute this script!" >&2
-        exit 1
-    fi
+    check_for_root
 
     local zone_file=
     local found=y