From ef7ceef623a3b07e29b7ba20d3a9a7e2be826688 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 11 Nov 2017 22:33:17 -0500 Subject: [PATCH] requiring root access on this now. --- .../fred/scripts/cakelampvm/revamp_web_permissions.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/customize/fred/scripts/cakelampvm/revamp_web_permissions.sh b/scripts/customize/fred/scripts/cakelampvm/revamp_web_permissions.sh index 33d3fa68..a886ee43 100755 --- a/scripts/customize/fred/scripts/cakelampvm/revamp_web_permissions.sh +++ b/scripts/customize/fred/scripts/cakelampvm/revamp_web_permissions.sh @@ -5,6 +5,13 @@ source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" ############## +if (( $EUID != 0 )); then + echo "This script must be run as root or sudo." + exit 1 +fi + +############## + # make sure we have the appropriate access on a few key folders. normal_perm /var/www -- 2.34.1