This commit is contained in:
2023-11-25 01:09:31 -06:00
parent 4a718e39e4
commit c901a10a6a
2 changed files with 36 additions and 38 deletions

View File

@@ -12,6 +12,7 @@ export DEBUG=false
export REMOTE_DAYZ_TRUENAS_SHARE='\\dayz-truenas.local.wvr.sh\dayz'
export REMOTE_DIR="/mnt/dayz"
export REMOTE_SERVER_LOCKFILE="$REMOTE_DIR/lockfile"
export REMOTE_MAPS="$REMOTE_DIR/stock/maps"
export REMOTE_MODS="$REMOTE_DIR/mods"
@@ -132,5 +133,13 @@ is_network_drive_mounted() {
exit 1
fi
}
islocked_remote_server() {
if [ -e "$REMOTE_SERVER_LOCKFILE" ] ; then
msg "Server is not currently locked!"
return 0
else
return 1
fi
}
################### GLOBAL FUNCTIONS #########################