diff --git a/netinstall.sh b/netinstall.sh index 5377a4e..302ef49 100644 --- a/netinstall.sh +++ b/netinstall.sh @@ -13,6 +13,7 @@ args=() output=/dev/null unstable= userinstall= +userinstall2= installservice= for arg in "$@"; do @@ -20,7 +21,8 @@ for arg in "$@"; do --verbose) output=/dev/fd/1; ;; --output=*) output="${1#--output=}"; ;; --unstable) unstable=1; ;; - --perform-user-install) userinstall=yes; ;; + --perform-user-install) userinstall2=yes; ;; + --yes-i-really-want-to-perform-a-user-install) userinstall=yes; ;; *) if [ -n "$channel" ]; then args+="$arg" @@ -35,12 +37,23 @@ if [ -z "$channel" ]; then channel="master" fi -if [[ "$steamcmd_user" == "--me" && -z "$userinstall" ]]; then +if [[ "$steamcmd_user" == "--me" && -z "$userinstall2" ]]; then echo "You have requested a user-install. You probably don't want this." echo "A user-install will create ~/.config/arkmanager/instances/main.cfg" echo "This config file will override /etc/arkmanager/instances/main.cfg" - echo "Add --perform-user-install if you really want this." + echo "Add --perform-user-install if you want this." exit 1 +elif [[ "$steamcmd_user" == "--me" && -z "$userinstall" ]]; then + echo "You have requested a user-install. You probably don't want this." + echo "A user-install will create ~/.config/arkmanager/instances/main.cfg" + echo "This config file will override /etc/arkmanager/instances/main.cfg" + echo "Add --yes-i-really-want-to-perform-a-user-install if you really want this." + exit 1 +elif [[ "$steamcmd_user" == "--me" ]]; then + echo "You have requested a user-install. You probably don't want this." + echo "A user-install will create ~/.config/arkmanager/instances/main.cfg" + echo "This config file will override /etc/arkmanager/instances/main.cfg" + echo "You have been warned." fi function doInstallFromCommit(){