X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fsite_avenger%2Fstandup.sh;h=e3cf02c6d12569c8e5f1e48b0c3b4d2dc156cde3;hb=b99f5357395128241be47c883b6792a764242915;hp=2ae953bb53409badf3ae85cafce07eee893d513f;hpb=f71a622f33747fd6e7ccae0e8da735c01a49a286;p=feisty_meow.git diff --git a/scripts/site_avenger/standup.sh b/scripts/site_avenger/standup.sh index 2ae953bb..e3cf02c6 100644 --- a/scripts/site_avenger/standup.sh +++ b/scripts/site_avenger/standup.sh @@ -7,6 +7,9 @@ # is much more powerful if the site is based on cakephp and site avenger. 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" ############################ @@ -31,6 +34,11 @@ overridden by setting the SITE_MANAGEMENT_CONFIG_FILE environment variable." # check for parameters. app_dirname="$1"; shift +if (( $EUID != 0 )); then + echo "This script must be run as root or sudo." + exit 1 +fi + if [ -z "$app_dirname" ]; then print_instructions fi