mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-13 00:58:34 +00:00
fixing root containers
This commit is contained in:
@@ -237,7 +237,6 @@ if [[ $SKIP_STORAGE -eq 0 ]]; then
|
||||
if [[ -d "$LOCAL_MODULES_DIR" ]]; then
|
||||
echo "⋅ Syncing module staging to remote"
|
||||
run_ssh "rm -rf '$REMOTE_STORAGE/modules' && mkdir -p '$REMOTE_STORAGE/modules'"
|
||||
local modules_tar
|
||||
modules_tar=$(mktemp)
|
||||
tar -cf "$modules_tar" -C "$LOCAL_MODULES_DIR" .
|
||||
run_scp "$modules_tar" "$USER@$HOST:/tmp/acore-modules.tar"
|
||||
|
||||
@@ -34,6 +34,15 @@ sync_local_staging(){
|
||||
|
||||
if [ ! -d "$src_modules" ]; then
|
||||
echo "ℹ️ No local module staging found at $src_modules (skipping sync)."
|
||||
# Check if modules exist in destination storage
|
||||
if [ -d "$dest_modules" ] && [ -n "$(ls -A "$dest_modules" 2>/dev/null)" ]; then
|
||||
local module_count
|
||||
module_count=$(find "$dest_modules" -maxdepth 1 -type d | wc -l)
|
||||
module_count=$((module_count - 1)) # Subtract 1 for the parent directory
|
||||
if [ "$module_count" -gt 0 ]; then
|
||||
echo "✅ Found $module_count modules in shared storage at $dest_modules"
|
||||
fi
|
||||
fi
|
||||
return
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user