mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-11 18:48:26 +00:00
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:
parent
241b35a8f5
commit
a4621389c9
@ -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")"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user