diff --git a/scripts/change_url b/scripts/change_url index 7b9d74e..840ae2b 100755 --- a/scripts/change_url +++ b/scripts/change_url @@ -16,7 +16,7 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression --message="Stopping a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" #================================================= # MODIFY URL IN NGINX CONF @@ -32,7 +32,7 @@ ynh_change_url_nginx_config #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #================================================= # END OF SCRIPT diff --git a/scripts/install b/scripts/install index 1e0fbf1..7210b16 100755 --- a/scripts/install +++ b/scripts/install @@ -42,7 +42,7 @@ yunohost service add $app --description="Self-hosted live video and web chat ser 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" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" sleep 20 #================================================= diff --git a/scripts/restore b/scripts/restore index 6bbc6ac..5e0b3c3 100755 --- a/scripts/restore +++ b/scripts/restore @@ -43,7 +43,7 @@ yunohost service add $app --description="Self-hosted live video and web chat ser #================================================= ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=10 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" sleep 20 ynh_systemd_action --service_name=nginx --action=reload