Make backup marker symlinks relative
All checks were successful
Deploy / Deploy (push) Successful in 2m42s

This commit is contained in:
2026-02-02 01:10:14 +00:00
parent c49ac48205
commit 1aa2b0c494

View File

@@ -178,10 +178,12 @@ finalize_backup() {
log_info "Backup ownership updated" log_info "Backup ownership updated"
RELATIVE_BACKUP_DIR="./$(basename $BACKUP_DIR)"
docker compose run --rm init sh -c ' docker compose run --rm init sh -c '
ln -sfn "$1" /backups/.latest_tmp && ln -sfn "$1" /backups/.latest_tmp &&
mv -Tf /backups/.latest_tmp /backups/latest mv -Tf /backups/.latest_tmp /backups/latest
' -- "$BACKUP_DIR" || { ' -- "$RELATIVE_BACKUP_DIR" || {
log_error "Failed to update /backups/latest symlink" log_error "Failed to update /backups/latest symlink"
return 1 return 1
} }