diff --git a/scripts/restore b/scripts/restore index fa52c41..f26800f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -19,13 +19,13 @@ source /usr/share/yunohost/helpers app=$YNH_APP_INSTANCE_NAME # Retrieve arguments -domain=$(ynh_app_setting_set $app domain) +domain=$(ynh_app_setting_get $app domain) # Get old parameter of the app -domain=$(ynh_app_setting_set $app domain) -path=$(ynh_app_setting_set $app path) -user=$(ynh_app_setting_set $app allowed_users) -is_public=$(ynh_app_setting_set $app is_public) +domain=$(ynh_app_setting_get $app domain) +path=$(ynh_app_setting_get $app path) +user=$(ynh_app_setting_get $app allowed_users) +is_public=$(ynh_app_setting_get $app is_public) final_path=/var/www/$app # Check domain/path availability