diff --git a/scripts/backup b/scripts/backup index b091c98..5e5c457 100644 --- a/scripts/backup +++ b/scripts/backup @@ -64,4 +64,4 @@ ynh_backup "/etc/logrotate.d/$app" #================================================= ynh_backup "/etc/uwsgi/apps-available/$app.ini" -ynh_backup "/etc/systemd/system/uwsgi-app@.service" \ No newline at end of file +ynh_backup "/etc/systemd/system/uwsgi-app@.service" diff --git a/scripts/install b/scripts/install index ff845f6..6598735 100644 --- a/scripts/install +++ b/scripts/install @@ -47,7 +47,7 @@ ynh_webpath_register "$app" "$domain" "$path_url" #================================================= ynh_app_setting_set "$app" domain "$domain" -ynh_app_setting_set "$app" path_url "$path_url" +ynh_app_setting_set "$app" path "$path_url" ynh_app_setting_set "$app" final_path "$final_path" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 88e6f1d..71c6e28 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,7 +24,7 @@ app=$YNH_APP_INSTANCE_NAME # Retrieve arguments domain=$(ynh_app_setting_get "$app" domain) -path_url=$(ynh_app_setting_get "$app" path_url) +path_url=$(ynh_app_setting_get "$app" path) db_name=$(ynh_app_setting_get "$app" db_name) db_pwd=$(ynh_app_setting_get "$app" mysqlpwd) db_user=$app @@ -50,7 +50,7 @@ fi # If path_url doesn't exist, create it if [ -z "$path_url" ]; then path_url=$(ynh_app_setting_get "$app" path) - ynh_app_setting_set "$app" path_url "$final_path" + ynh_app_setting_set "$app" path "$path_url" ynh_app_setting_delete "$app" path fi