From: Frank Brehm Date: Wed, 30 Nov 2022 09:29:10 +0000 (+0100) Subject: Minor changes in scripts/create-pdns-zones-from-files X-Git-Tag: 0.7.4^2~1^2 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=fdaffba44db33ccf9bd186f04aa0dd6e2993bebb;p=pixelpark%2Fpp-admin-tools.git Minor changes in scripts/create-pdns-zones-from-files --- diff --git a/scripts/create-pdns-zones-from-files b/scripts/create-pdns-zones-from-files index d158aa4..0bee14f 100755 --- a/scripts/create-pdns-zones-from-files +++ b/scripts/create-pdns-zones-from-files @@ -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