mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 13:55:08 +00:00
quote issues fixed
This commit is contained in:
parent
86af18c90a
commit
55c02b1843
1 changed files with 6 additions and 6 deletions
12
.github/workflows/restore-site.yml
vendored
12
.github/workflows/restore-site.yml
vendored
|
|
@ -253,26 +253,26 @@ jobs:
|
|||
|
||||
echo \"Restoring from: \$DB_FILE\"
|
||||
|
||||
# Construct command dynamically to handle missing file backups
|
||||
CMD=\"bench --site ${{ github.event.inputs.site_name }} --force restore '\$DB_FILE'\"
|
||||
# Construct command using array to handle arguments safely
|
||||
ARGS=(bench --site ${{ github.event.inputs.site_name }} --force restore \"\$DB_FILE\")
|
||||
|
||||
if [ -n \"\$PUBLIC_FILES\" ]; then
|
||||
echo \"With public files: \$PUBLIC_FILES\"
|
||||
CMD=\"\$CMD --with-public-files '\$PUBLIC_FILES'\"
|
||||
ARGS+=(--with-public-files \"\$PUBLIC_FILES\")
|
||||
else
|
||||
echo \"⚠️ No public files backup found, skipping files restore\"
|
||||
fi
|
||||
|
||||
if [ -n \"\$PRIVATE_FILES\" ]; then
|
||||
echo \"With private files: \$PRIVATE_FILES\"
|
||||
CMD=\"\$CMD --with-private-files '\$PRIVATE_FILES'\"
|
||||
ARGS+=(--with-private-files \"\$PRIVATE_FILES\")
|
||||
else
|
||||
echo \"⚠️ No private files backup found, skipping private files restore\"
|
||||
fi
|
||||
|
||||
# Restore the database
|
||||
echo \"Running: \$CMD\"
|
||||
eval \"\$CMD\"
|
||||
echo \"Running: \${ARGS[*]}\"
|
||||
\"\${ARGS[@]}\"
|
||||
|
||||
echo \"✅ Database restored successfully\"
|
||||
'
|
||||
|
|
|
|||
Loading…
Reference in a new issue