|
|
@@ -37,19 +37,9 @@ ynh_script_progression --message="Restoring the NGINX web server configuration..
|
|
|
|
|
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
|
|
|
|
|
-#=================================================
|
|
|
-# RESTORE SYSTEMD
|
|
|
-#=================================================
|
|
|
-ynh_script_progression --message="Restoring the systemd configuration..." --weight=1
|
|
|
-
|
|
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
|
|
systemctl enable $app.service --quiet
|
|
|
|
|
|
-#=================================================
|
|
|
-# INTEGRATE SERVICE IN YUNOHOST
|
|
|
-#=================================================
|
|
|
-ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
|
|
-
|
|
|
yunohost service add $app --description="Customizable browser's home page" --log="/var/log/$app/$app.log"
|
|
|
|
|
|
#=================================================
|
|
|
@@ -57,14 +47,7 @@ yunohost service add $app --description="Customizable browser's home page" --log
|
|
|
#=================================================
|
|
|
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"
|
|
|
-
|
|
|
-#=================================================
|
|
|
-# GENERIC FINALIZATION
|
|
|
-#=================================================
|
|
|
-# RELOAD NGINX AND PHP-FPM
|
|
|
-#=================================================
|
|
|
-ynh_script_progression --message="Reloading NGINX web server..." --weight=1
|
|
|
+ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
|
|
|
|
|
|
ynh_systemd_action --service_name=nginx --action=reload
|
|
|
|