mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-27 08:48:27 +00:00
Automatically su to steamcmd_user if run as root
This commit is contained in:
parent
a307643e90
commit
1505aa85ab
@ -94,16 +94,7 @@ runAsRoot(){
|
|||||||
elif [ "$1" == "uninstall-tools" ]; then
|
elif [ "$1" == "uninstall-tools" ]; then
|
||||||
doUninstallTools
|
doUninstallTools
|
||||||
else
|
else
|
||||||
echo -n "arkmanager v${arkstVersion}: "
|
su "$steamcmd_user" -c "$(printf "%q" "$0")$(printf " %q" "$@")"
|
||||||
if [ $# -eq 0 ]; then
|
|
||||||
echo "no command specified"
|
|
||||||
else
|
|
||||||
echo "unknown command '$1' specified"
|
|
||||||
fi
|
|
||||||
echo -e "Usage: arkmanager [OPTION]\n"
|
|
||||||
echo "Option Description"
|
|
||||||
echo "upgrade-tools Check for a new ARK Server Tools version and upgrades it if needed"
|
|
||||||
echo "uninstall-tools Uninstall the ARK Server Tools"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user