From: Chris Koeritz Date: Mon, 13 Nov 2017 03:25:58 +0000 (-0500) Subject: making the revamp available in general X-Git-Tag: 2.140.98^2~1^2~3 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=50cb3a63e6c248bd1f42d19276f1a663c8e9ad81;p=feisty_meow.git making the revamp available in general --- diff --git a/scripts/customize/fred/scripts/cakelampvm/revamp_web_permissions.sh b/scripts/customize/fred/scripts/cakelampvm/revamp_web_permissions.sh deleted file mode 100644 index 2081b8f6..00000000 --- a/scripts/customize/fred/scripts/cakelampvm/revamp_web_permissions.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -# fixes the cakelampvm permissions according to the way. - -############## - -if [[ $EUID != 0 ]]; then - echo "This script must be run as root or sudo." - exit 1 -fi - -############## - -export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory. -export FEISTY_MEOW_APEX="$( \cd "$WORKDIR/../../../../.." && \pwd )" - -source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh" - -############## - -# fix up the main web storage. -chown -R www-data:www-data /var/www -group_perm /var/www - -############## - -# set up access on some important folders for the developer user. -chown -R developer:developer /home/developer -harsh_perm /home/developer/.ssh -chown -R developer:developer /opt/feistymeow.org -group_perm /opt/feistymeow.org -chown -R developer:developer /etc/apache2 /etc/bind -group_perm /etc/apache2 /etc/bind - -############## - -# fix perms for fred user. -chown -R fred:fred /home/fred /home/archives/stuffing -harsh_perm /home/fred/.ssh - -############## - diff --git a/scripts/site_avenger/revamp_web_permissions.sh b/scripts/site_avenger/revamp_web_permissions.sh new file mode 100644 index 00000000..2081b8f6 --- /dev/null +++ b/scripts/site_avenger/revamp_web_permissions.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# fixes the cakelampvm permissions according to the way. + +############## + +if [[ $EUID != 0 ]]; then + echo "This script must be run as root or sudo." + exit 1 +fi + +############## + +export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory. +export FEISTY_MEOW_APEX="$( \cd "$WORKDIR/../../../../.." && \pwd )" + +source "$FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh" + +############## + +# fix up the main web storage. +chown -R www-data:www-data /var/www +group_perm /var/www + +############## + +# set up access on some important folders for the developer user. +chown -R developer:developer /home/developer +harsh_perm /home/developer/.ssh +chown -R developer:developer /opt/feistymeow.org +group_perm /opt/feistymeow.org +chown -R developer:developer /etc/apache2 /etc/bind +group_perm /etc/apache2 /etc/bind + +############## + +# fix perms for fred user. +chown -R fred:fred /home/fred /home/archives/stuffing +harsh_perm /home/fred/.ssh + +############## +