asdf
This commit is contained in:
@@ -76,7 +76,7 @@ check() {
|
||||
}
|
||||
|
||||
init_server() {
|
||||
mkdir -p "$SERVER_HOME" "$CACHE" "$MOD_CACHE" "$STOCK_SERVER_CACHE" "$DAYZ_FILES/stock/maps/$MAP_FOLDER_NAME"
|
||||
mkdir -p "$SERVER_HOME" "$CACHE" "$MOD_CACHE" "$STOCK_SERVER_CACHE" "$LOCAL_DAYZ_FILES/stock/maps/$MAP_FOLDER_NAME"
|
||||
:>"$SERVER_HOME/.modstring"
|
||||
|
||||
check || die "Failed check()"
|
||||
@@ -91,7 +91,7 @@ load_stock_map_data() {
|
||||
mkdir -p "$SERVER_HOME/mpmissions/$MAP_FOLDER_NAME"
|
||||
|
||||
do_sync --exclude='*storage_1*' \
|
||||
"$DAYZ_FILES/stock/maps/$MAP_FOLDER_NAME"/ \
|
||||
"$LOCAL_DAYZ_FILES/stock/maps/$MAP_FOLDER_NAME"/ \
|
||||
"$SERVER_HOME/mpmissions/$MAP_FOLDER_NAME" || \
|
||||
die "Failed to copy remote stock map data to local cache"
|
||||
}
|
||||
@@ -114,7 +114,7 @@ refresh_local_cache() {
|
||||
|
||||
msg "Refreshing local map data cache for: $MAP_FOLDER_NAME"
|
||||
if ! islocked_remote_server ; then
|
||||
do_sync "$REMOTE_MAPS/$MAP_FOLDER_NAME"/ "$DAYZ_FILES/stock/maps/$MAP_FOLDER_NAME" || \
|
||||
do_sync "$REMOTE_MAPS/$MAP_FOLDER_NAME"/ "$LOCAL_DAYZ_FILES/stock/maps/$MAP_FOLDER_NAME" || \
|
||||
die "Failed to copy remote stock map data for: $MAP_FOLDER_NAME"
|
||||
else
|
||||
msg "Remote server is locked, sleeping..."
|
||||
@@ -122,7 +122,7 @@ refresh_local_cache() {
|
||||
sleep 15
|
||||
echo 'Sleeping...'
|
||||
done
|
||||
do_sync "$REMOTE_MAPS/$MAP_FOLDER_NAME"/ "$DAYZ_FILES/stock/maps/$MAP_FOLDER_NAME" || \
|
||||
do_sync "$REMOTE_MAPS/$MAP_FOLDER_NAME"/ "$LOCAL_DAYZ_FILES/stock/maps/$MAP_FOLDER_NAME" || \
|
||||
die "Failed to copy remote stock map data for: $MAP_FOLDER_NAME"
|
||||
fi
|
||||
msg "Successfully copied stock map data for: $MAP_FOLDER_NAME"
|
||||
|
||||
Reference in New Issue
Block a user