1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phplicensewatcher_ynh.git synced 2024-09-03 19:56:32 +02:00
phplicensewatcher_ynh/scripts/remove

38 lines
1.1 KiB
Text
Raw Normal View History

2019-12-30 10:19:54 +01:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD REMOVE
#=================================================
2021-11-19 21:46:31 +01:00
# REMOVE SERVICE INTEGRATION IN YUNOHOST
2019-12-30 10:19:54 +01:00
#=================================================
2021-11-19 21:46:31 +01:00
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
2024-01-13 12:13:28 +01:00
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"
2019-12-30 10:19:54 +01:00
fi
2021-11-19 21:46:31 +01:00
# Remove the dedicated NGINX config
2019-12-30 10:19:54 +01:00
ynh_remove_nginx_config
2021-11-19 21:46:31 +01:00
# Remove the dedicated PHP-FPM config
ynh_remove_fpm_config
2019-12-30 10:19:54 +01:00
2021-11-19 21:55:25 +01:00
# Remove a cron file
ynh_secure_remove --file="/etc/cron.d/$app"
2019-12-30 10:19:54 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2021-11-19 22:24:38 +01:00
ynh_script_progression --message="Removal of $app completed" --last