diff --git a/scripts/backup b/scripts/backup index e0ee696..feb96a4 100755 --- a/scripts/backup +++ b/scripts/backup @@ -47,6 +47,7 @@ ynh_backup --src_path="/etc/logrotate.d/$app" ynh_backup --src_path="/etc/systemd/system/$app.service" ynh_backup --src_path="/etc/systemd/system/$app-ui.service" +ynh_backup --src_path="/etc/systemd/system/$app-pict-rs.service" #================================================= # BACKUP THE POSTGRESQL DATABASE diff --git a/scripts/change_url b/scripts/change_url index f6b925a..2204021 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -18,6 +18,7 @@ ynh_script_progression --message="Stopping a systemd service..." --weight=1 ynh_systemd_action --service_name=$app --action="stop" --line_match="Stopped" --log_path=systemd ynh_systemd_action --service_name=$app-ui --action="stop" --line_match="Stopped" --log_path=systemd +ynh_systemd_action --service_name=$app-pict-rs --action="stop" --line_match="Stopped" --log_path=systemd #================================================= # MODIFY URL IN NGINX CONF @@ -44,8 +45,9 @@ chown $app:$app "$install_dir/config/config.hjson" #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --line_match="Starting http server at" --log_path="/var/log/$app/$app.log" -ynh_systemd_action --service_name=$app-ui --action="start" --line_match="http://0.0.0.0" --log_path="/var/log/$app/$app-ui.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Starting http server at" +ynh_systemd_action --service_name=$app-ui --action="start" --log_path="/var/log/$app/$app-ui.log" +ynh_systemd_action --service_name=$app-pict-rs --action="start" --log_path="/var/log/$app/$app-pict-rs.log" #--line_match="http://0.0.0.0" #================================================= # END OF SCRIPT diff --git a/scripts/install b/scripts/install index 221454f..fc10798 100755 --- a/scripts/install +++ b/scripts/install @@ -142,6 +142,7 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Starting http server at" ynh_systemd_action --service_name=$app-ui --action="start" --log_path="/var/log/$app/$app-ui.log" --line_match="http://0.0.0.0" +ynh_systemd_action --service_name=$app-pict-rs --action="start" --log_path="/var/log/$app/$app-pict-rs.log" #--line_match="http://0.0.0.0" #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index 10048d1..5eddb79 100755 --- a/scripts/restore +++ b/scripts/restore @@ -65,6 +65,8 @@ ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable $app.service --quiet ynh_restore_file --origin_path="/etc/systemd/system/$app-ui.service" systemctl enable $app-ui.service --quiet +ynh_restore_file --origin_path="/etc/systemd/system/$app-pict-rs.service" +systemctl enable $app-pict-rs.service --quiet #================================================= # RESTORE THE LOGROTATE CONFIGURATION @@ -85,6 +87,7 @@ ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 yunohost service add $app --log="/var/log/$app/$app.log" yunohost service add $app-ui --log="/var/log/$app/$app-ui.log" +yunohost service add $app-pict-rs --log="/var/log/$app/$app-pict-rs.log" #================================================= # START SYSTEMD SERVICE @@ -93,6 +96,7 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_systemd_action --service_name=$app --action="start" --line_match="Starting http server at" --log_path="/var/log/$app/$app.log" ynh_systemd_action --service_name=$app-ui --action="start" --line_match="http://0.0.0.0" --log_path="/var/log/$app/$app-ui.log" +ynh_systemd_action --service_name=$app-pict-rs --action="start" --log_path="/var/log/$app/$app-pict-rs.log" #--line_match="http://0.0.0.0" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index f36f87d..dc0dde1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -173,7 +173,8 @@ ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 yunohost service add $app --log="/var/log/$app/$app.log" yunohost service add $app-ui --log="/var/log/$app/$app-ui.log" - +yunohost service add $app-pict-rs --log="/var/log/$app/$app-pict-rs.log" +` #================================================= # START SYSTEMD SERVICE #================================================= @@ -181,6 +182,7 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_systemd_action --service_name=$app --action="start" --line_match="Starting http server at" --log_path="/var/log/$app/$app.log" ynh_systemd_action --service_name=$app-ui --action="start" --line_match="http://0.0.0.0" --log_path="/var/log/$app/$app-ui.log" +ynh_systemd_action --service_name=$app-pict-rs --action="start" --log_path="/var/log/$app/$app-pict-rs.log" #--line_match="http://0.0.0.0" #================================================= # END OF SCRIPT