added autolocation to standup
[feisty_meow.git] / scripts / site_avenger / standup.sh
index 2ae953bb53409badf3ae85cafce07eee893d513f..7ed1c8405e1d01dc7d85c2272ae87b7aa43a5883 100644 (file)
@@ -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_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