From a4621389c909a193ebc47e9826e1602098d0ed6a Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Sun, 13 Nov 2016 09:55:29 +1000 Subject: [PATCH] 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. --- netinstall.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/netinstall.sh b/netinstall.sh index c69a2de..7ddab9b 100644 --- a/netinstall.sh +++ b/netinstall.sh @@ -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")"