diff --git a/scripts/install b/scripts/install index c0cebbe..4cd4cef 100644 --- a/scripts/install +++ b/scripts/install @@ -29,6 +29,7 @@ ynh_script_progression --message="Validating installation parameters..." --weigh #================================================= ynh_script_progression --message="Storing installation settings..." +ynh_app_setting_set --app=$app --key=password --value=$password ynh_app_setting_set --app=$app --key=with_mysql --value=$with_mysql ynh_app_setting_set --app=$app --key=with_sftp --value=$with_sftp ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion diff --git a/scripts/restore b/scripts/restore index 82b26a1..266850a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -9,13 +9,6 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers -#================================================= -# MANAGE SCRIPT FAILURE -#================================================= - -# Exit if an error occurs during the execution of the script -#REMOVEME? ynh_abort_if_errors - #================================================= # LOAD SETTINGS #================================================= @@ -23,6 +16,7 @@ ynh_script_progression --message="Loading settings..." --weight=2 with_mysql=$(ynh_app_setting_get --app=$app --key=with_mysql) with_sftp=$(ynh_app_setting_get --app=$app --key=with_sftp) +password=$(ynh_app_setting_get --app=$app --key=password) #================================================= # STANDARD RESTORATION STEPS