eval set -- "$options"
+if [[ $EUID -ne 0 ]]; then
+ echo "This script must be run as root" 1>&2
+ exit 1
+fi
+
REINIT=false
AUTO=false
. $scriptdir/install/detect_os
FUSIONFORGE_DEFAULT_SRC_DIR=$(cd $(dirname $0); pwd)
-FUSIONFORGE_DEFAULT_DIR=$FUSIONFORGE_DEFAULT_SRC_DIR
+FUSIONFORGE_DEFAULT_DIR=$FORGE_HOME
fusionforge_src_dir=${FUSIONFORGE_SRC_DIR:-$FUSIONFORGE_DEFAULT_SRC_DIR}
fusionforge_dir=${FUSIONFORGE_DIR:-$FUSIONFORGE_DEFAULT_DIR}
fusionforge_data_dir=${FUSIONFORGE_DATA_DIR:-/var/lib/gforge}
# Call to detect_os, this will set $type and $distrib
os=$(detect_os)
type=$(detect_type)
+echo "Install type = $type"
if $DEPS || $DEFAULT
then
echo "Installing FusionForge ...";
fi
-echo "Install type = $type"
if $DEFAULT || $FILES
then
install2_files_$type "$hostname"