Annnnd our legacy app is using restore_dir in restore script...

This commit is contained in:
Alexandre Aubin 2021-01-04 03:50:25 +01:00
parent b0accd506e
commit 25ed25e6e9

View file

@ -3153,6 +3153,13 @@ def _patch_legacy_helpers(app_folder):
"replace": r"backup_dir=.",
"important": True
},
# Old $1, $2 in backup/restore scripts...
"restore_dir=$1": {
"only_for": ["scripts/restore"],
"pattern": r"restore_dir=\$1",
"replace": r"restore_dir=.",
"important": True
},
# Old $1, $2 in install scripts...
# We ain't patching that shit because it ain't trivial to patch all args...
"domain=$1": {