From 6ff613ad55d1c93cd0b7f08eb500e1fe45fa7fb2 Mon Sep 17 00:00:00 2001 From: denis Date: Fri, 15 Nov 2024 20:25:22 -0500 Subject: [PATCH] Update scripts/upgrade --- scripts/upgrade | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8e3091f..a099077 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -34,9 +34,13 @@ ynh_script_progression "Upgrading system configurations related to $app..." ynh_config_add_nginx -ynh_config_add_systemd +ynh_add_systemd_config --service= "$app-backend" --template="$backend" -yunohost service add "$app" --description="a beautiful and performant vault to save all your files in the cloud" --log="/var/log/$app/$app.log" +ynh_add_systemd_config --service= "$app-frontend" --template="$frontend" + +yunohost service add "$app-backend" --description="a beautiful and performant vault to save all your files in the cloud" --log="/var/log/$app/$app.log" + +yunohost service add "$app-frontend" --description="a beautiful and performant vault to save all your files in the cloud" --log="/var/log/$app/$app.log" ynh_script_progression "Installing $app..." @@ -52,7 +56,9 @@ popd #================================================= ynh_script_progression "Starting $app's systemd service..." -ynh_systemctl --service="$app" --action="start" +ynh_systemctl --service="$app-backend" --action="start" + +ynh_systemctl --service="$app-frontend" --action="start" #================================================= # END OF SCRIPT