From: Frank Brehm Date: Wed, 30 Apr 2014 08:00:27 +0000 (+0200) Subject: Added exec dependency to root in create-grml-squash.sh X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=637827f06c6a9e4886a4f4312bac16efb1b0323d;p=profitbricks%2Fjenkins-build-scripts.git Added exec dependency to root in create-grml-squash.sh --- diff --git a/create-grml-squash.sh b/create-grml-squash.sh index c6a870d..40e36c7 100755 --- a/create-grml-squash.sh +++ b/create-grml-squash.sh @@ -427,6 +427,12 @@ create_squashfs() { main() { do_getopt "$@" + + if [[ "${EUID}" != "0" ]] ; then + echo "You must be root to execute this script." >&2 + exit 1 + fi + unpack_orig mangle_resolv_conf