fix
This commit is contained in:
@@ -47,7 +47,18 @@ export SERVERS="$LOCAL_DAYZ_FILES/servers"
|
||||
export RESTART_INTERVAL=$((60 * 60 * 4 + 3))
|
||||
|
||||
# ===================================================
|
||||
# 03. init and checks
|
||||
# 03. Mount network drive
|
||||
# ===================================================
|
||||
if ! is_network_drive_mounted ; then
|
||||
mount_dayz_network_drive
|
||||
|
||||
if ! is_network_drive_mounted ; then
|
||||
die "Could not mount network drive"
|
||||
fi
|
||||
fi
|
||||
|
||||
# ===================================================
|
||||
# 04. init and checks
|
||||
# ===================================================
|
||||
check() {
|
||||
if [ ! -d "$LOCAL_DAYZ_FILES" ] ; then
|
||||
@@ -70,7 +81,7 @@ init_server() {
|
||||
}
|
||||
|
||||
# ===================================================
|
||||
# 04. Load stock files
|
||||
# 05. Load stock files
|
||||
# ===================================================
|
||||
# load_stock_map_data() {
|
||||
# mkdir -p "$SERVER_HOME/mpmissions/$MAP_FOLDER_NAME"
|
||||
@@ -83,7 +94,7 @@ init_server() {
|
||||
refresh_local_cache() {
|
||||
msg "Refreshing local stock server cache"
|
||||
if ! islocked_remote_server ; then
|
||||
load_stock_map_data
|
||||
lock_remote_server
|
||||
do_sync "$REMOTE_STOCK_SERVER"/ "$STOCK_SERVER_CACHE"
|
||||
unlock_remote_server
|
||||
else
|
||||
@@ -141,7 +152,7 @@ setup_environment() {
|
||||
}
|
||||
|
||||
# ===================================================
|
||||
# 05. Start function
|
||||
# 06. Start function
|
||||
# ===================================================
|
||||
start_server() {
|
||||
check || die "Failed check()"
|
||||
@@ -164,7 +175,7 @@ start_server() {
|
||||
}
|
||||
|
||||
# ===================================================
|
||||
# 06. Main loop
|
||||
# 07. Main loop
|
||||
# ===================================================
|
||||
main() {
|
||||
cd "$ORIGINAL_DIR" || die "Can no longer cd to $ORIGINAL_DIR"
|
||||
|
||||
Reference in New Issue
Block a user