From 3ccc9dee435386fb0d346e51967dbfe1995c250b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 7 Jun 2021 23:27:04 +0200 Subject: [PATCH] Remove service --- scripts/install | 7 ------- scripts/remove | 13 ------------- scripts/restore | 7 ------- scripts/upgrade | 7 ------- 4 files changed, 34 deletions(-) diff --git a/scripts/install b/scripts/install index 40fdb1e..659f42a 100755 --- a/scripts/install +++ b/scripts/install @@ -94,13 +94,6 @@ ynh_add_config --template="../conf/configuration.ini" --destination="$final_path chmod 400 "$final_path/configuration.ini" chown $app: "$final_path/configuration.ini" -#================================================= -# INTEGRATE SERVICE IN YUNOHOST -#================================================= -ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 - -yunohost service add $app --description="ChuWiki service" --log="/var/log/$app/$app.log" - #================================================= # SETUP SSOWAT #================================================= diff --git a/scripts/remove b/scripts/remove index 9b9dfa8..4a7848b 100755 --- a/scripts/remove +++ b/scripts/remove @@ -19,19 +19,6 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) final_path=$(ynh_app_setting_get --app=$app --key=final_path) -#================================================= -# STANDARD REMOVE -#================================================= -# REMOVE SERVICE INTEGRATION IN YUNOHOST -#================================================= - -# Remove the service from the list of services known by YunoHost (added from `yunohost service add`) -if ynh_exec_warn_less yunohost service status $app >/dev/null -then - ynh_script_progression --message="Removing $app service integration..." --weight=1 - yunohost service remove $app -fi - #================================================= # REMOVE APP MAIN DIR #================================================= diff --git a/scripts/restore b/scripts/restore index 8b3c746..005644b 100755 --- a/scripts/restore +++ b/scripts/restore @@ -72,13 +72,6 @@ chown -R $app:www-data "$final_path" ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" -#================================================= -# INTEGRATE SERVICE IN YUNOHOST -#================================================= -ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 - -yunohost service add $app --description="ChuWiki service" --log="/var/log/$app/$app.log" - #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index bcf9aa6..63014f9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -102,13 +102,6 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 # Create a dedicated PHP-FPM config ynh_add_fpm_config -#================================================= -# INTEGRATE SERVICE IN YUNOHOST -#================================================= -ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 - -yunohost service add $app --description="ChuWiki service" --log="/var/log/$app/$app.log" - #================================================= # RELOAD NGINX #=================================================