mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Apply the dirty php5/php7 patch to scripts/conf when restoring an app
This commit is contained in:
parent
1d71715436
commit
e36c7daa99
1 changed files with 4 additions and 1 deletions
|
@ -43,7 +43,7 @@ from moulinette.utils.log import getActionLogger
|
||||||
from moulinette.utils.filesystem import read_file
|
from moulinette.utils.filesystem import read_file
|
||||||
|
|
||||||
from yunohost.app import (
|
from yunohost.app import (
|
||||||
app_info, _is_installed, _parse_app_instance_name
|
app_info, _is_installed, _parse_app_instance_name, _patch_php5
|
||||||
)
|
)
|
||||||
from yunohost.hook import (
|
from yunohost.hook import (
|
||||||
hook_list, hook_info, hook_callback, hook_exec, CUSTOM_HOOK_FOLDER
|
hook_list, hook_info, hook_callback, hook_exec, CUSTOM_HOOK_FOLDER
|
||||||
|
@ -1199,6 +1199,9 @@ class RestoreManager():
|
||||||
app_settings_in_archive = os.path.join(app_dir_in_archive, 'settings')
|
app_settings_in_archive = os.path.join(app_dir_in_archive, 'settings')
|
||||||
app_scripts_in_archive = os.path.join(app_settings_in_archive, 'scripts')
|
app_scripts_in_archive = os.path.join(app_settings_in_archive, 'scripts')
|
||||||
|
|
||||||
|
# Apply dirty patch to make php5 apps compatible with php7
|
||||||
|
_patch_php5(app_settings_in_archive)
|
||||||
|
|
||||||
# Check if the app has a restore script
|
# Check if the app has a restore script
|
||||||
app_restore_script_in_archive = os.path.join(app_scripts_in_archive,
|
app_restore_script_in_archive = os.path.join(app_scripts_in_archive,
|
||||||
'restore')
|
'restore')
|
||||||
|
|
Loading…
Add table
Reference in a new issue