From 637827f06c6a9e4886a4f4312bac16efb1b0323d Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 30 Apr 2014 10:00:27 +0200 Subject: [PATCH] Added exec dependency to root in create-grml-squash.sh --- create-grml-squash.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5