fix(publish): use relative symlink for latest, set 0644 perms, populate rowCounts from dump

This commit is contained in:
Lars committed 2026-10-29 16:02:37 +01:00
1 parent 0bbc4ce440
commit 7116215477
3 files changed
+39 -10

No files matched your search

+6 -1
View File
@@ -55,11 +55,16 @@ if [[ -f "$MEDIA_FILE" ]]; then
cp -p -- "$MEDIA_FILE" "$STAGING_DIR/"
fi
# Ensure all backup artifacts are readable across hosts (e.g. llmadmin on llm-node)
chmod 0755 "$STAGING_DIR"
chmod 0644 "$STAGING_DIR"/*
mv -T -- "$STAGING_DIR" "$FINAL_DIR"
STAGING_DIR=""
# Use relative symlink so the latest link works regardless of mount point path on different hosts
TEMP_LINK="$TARGET_DIR/.latest-$$"
ln -s -- "$FINAL_DIR" "$TEMP_LINK"
ln -s -- "$TIMESTAMP" "$TEMP_LINK"
mv -Tf -- "$TEMP_LINK" "$TARGET_DIR/latest"
echo "OK: Backup-Satz veroeffentlicht unter $FINAL_DIR (latest aktualisiert)"