Add warning about user-installs

Too many tickets have been opened where the user has performed a user-install and then is wondering why their settings in `/etc/arkmanager/instances/main.cfg` are being overridden.  Give the user a big warning if they try to perform a user-install without knowing what they're doing.
This commit is contained in:
Ben Peddell 2016-11-13 09:55:29 +10:00 committed by GitHub
parent 241b35a8f5
commit a4621389c9

View File

@ -26,6 +26,19 @@ if [ "$1" = "--unstable" ]; then
unstable=1
fi
userinstall=
if [ "$1" = "--perform-user-install" ]; then
userinstall=yes
fi
if [[ "$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 --perform-user-install if you really want this."
exit 1
fi
function doInstallFromCommit(){
local commit="$1"
tmpdir="$(mktemp -t -d "ark-server-tools-XXXXXXXX")"