diff --git a/scripts/restore b/scripts/restore index 478d567..9a60143 100755 --- a/scripts/restore +++ b/scripts/restore @@ -33,7 +33,7 @@ sub_folder=$(ynh_app_setting_get --app=$app --key=sub_folder) #================================================= ynh_script_progression --message="Validating restoration parameters..." -test -e "/var/www/$(ynh_app_setting_get --app=$app_id --key=final_path)" || ynh_die --message="You don't have installed $app before restoring this app" +test -e "$(ynh_app_setting_get --app=$app_id --key=final_path)" || ynh_die --message="You don't have installed $app_id before installing this app" test ! -e "$final_path" || ynh_die --message="This path already contains a folder" #=================================================