fix(deploy): validate and repair shared environment
CI and Deploy / test (push) Successful in 6m52s
CI and Deploy / deploy (push) Successful in 5m7s

This commit is contained in:
cesnimda
2026-09-02 00:58:20 +02:00
parent de85492373
commit 7d641edc7b
2 changed files with 15 additions and 2 deletions
+4 -1
View File
@@ -406,7 +406,10 @@ verify_backup_file_shape() {
report_backup() {
local target="$1" size
chmod 600 "$target"
if ! chmod 600 "$target" 2>/dev/null; then
docker run --rm -v "$BACKUP_DIR":/backup -e BACKUP_FILE="$(basename "$target")" \
alpine:3 sh -c 'chmod 600 "/backup/$BACKUP_FILE"'
fi
size="$(du -h "$target" | cut -f1)"
echo "Backup verified: ${target} (${size})"
return 0