mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-24 15:38:26 +00:00
Merge pull request #397 from klightspeed/1.5-dev#uninstallmod
Add uninstallmod and reinstallmod
This commit is contained in:
commit
1286f609c3
@ -1382,6 +1382,17 @@ doInstallMod(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Removes mod from mods directory
|
||||||
|
#
|
||||||
|
doUninstallMod(){
|
||||||
|
local modid=$1
|
||||||
|
local moddir="$arkserverroot/ShooterGame/Content/Mods/$modid"
|
||||||
|
if [ -d "${moddir}" ]; then
|
||||||
|
rm -rf "${moddir}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copies server state to a backup directory
|
# Copies server state to a backup directory
|
||||||
#
|
#
|
||||||
@ -1659,6 +1670,8 @@ showUsage() {
|
|||||||
echo "checkupdate Check for a new ARK server version"
|
echo "checkupdate Check for a new ARK server version"
|
||||||
echo "install Install the ARK server files from steamcmd"
|
echo "install Install the ARK server files from steamcmd"
|
||||||
echo "installmod <modid> Installs a mod from the Steam workshop"
|
echo "installmod <modid> Installs a mod from the Steam workshop"
|
||||||
|
echo "uninstallmod <modid> Removes the mod from the Mods directory"
|
||||||
|
echo "reinstallmod <modid> Removes and re-installs a mod in the Mods directory"
|
||||||
echo "restart Stops the server and then starts it"
|
echo "restart Stops the server and then starts it"
|
||||||
echo "run Runs the server without daemonizing"
|
echo "run Runs the server without daemonizing"
|
||||||
echo "start Starts the server"
|
echo "start Starts the server"
|
||||||
@ -1697,6 +1710,8 @@ while true; do
|
|||||||
# get the number of arguments for commands that take arguments
|
# get the number of arguments for commands that take arguments
|
||||||
case "$command" in
|
case "$command" in
|
||||||
installmod) nrarg=1; ;;
|
installmod) nrarg=1; ;;
|
||||||
|
uninstallmod) nrarg=1; ;;
|
||||||
|
reinstallmod) nrarg=1; ;;
|
||||||
broadcast) nrarg=1; ;;
|
broadcast) nrarg=1; ;;
|
||||||
rconcmd) nrarg=1; ;;
|
rconcmd) nrarg=1; ;;
|
||||||
useconfig) nrarg=1; ;;
|
useconfig) nrarg=1; ;;
|
||||||
@ -1833,6 +1848,13 @@ while true; do
|
|||||||
installmod)
|
installmod)
|
||||||
doInstallMod "${args[@]}"
|
doInstallMod "${args[@]}"
|
||||||
;;
|
;;
|
||||||
|
uninstallmod)
|
||||||
|
doUninstallMod "${args[@]}"
|
||||||
|
;;
|
||||||
|
reinstallmod)
|
||||||
|
doUninstallMod "${args[@]}"
|
||||||
|
doInstallMod "${args[@]}"
|
||||||
|
;;
|
||||||
backup)
|
backup)
|
||||||
doBackup
|
doBackup
|
||||||
;;
|
;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user