1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grocy_ynh.git synced 2024-09-03 19:25:54 +02:00

Remove service

This commit is contained in:
ericgaspar 2020-12-26 19:29:43 +01:00
parent 7691d27aa3
commit b3e8ff96a3
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 0 additions and 34 deletions

View file

@ -106,13 +106,6 @@ ynh_store_file_checksum --file="$final_path/data/config.php"
chown -R $app: $final_path chown -R $app: $final_path
chmod -R 755 $final_path/data chmod -R 755 $final_path/data
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Self-hosted groceries & household management" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================

View file

@ -19,19 +19,6 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain) domain=$(ynh_app_setting_get --app=$app --key=domain)
final_path=$(ynh_app_setting_get --app=$app --key=final_path) final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================
# STANDARD REMOVE
#=================================================
# STOP AND REMOVE SERVICE
#=================================================
# 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 # REMOVE APP MAIN DIR
#================================================= #=================================================

View file

@ -79,13 +79,6 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
chown -R $app: $final_path chown -R $app: $final_path
chmod -R 755 $final_path/data chmod -R 755 $final_path/data
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Self-hosted groceries & household management" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================

View file

@ -110,13 +110,6 @@ ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --
chown -R $app: $final_path chown -R $app: $final_path
chmod -R 755 $final_path/data chmod -R 755 $final_path/data
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Self-hosted groceries & household management" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX
#================================================= #=================================================