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

34 lines
1,002 B
Text
Raw Normal View History

2015-08-03 12:05:52 +02:00
#!/bin/bash
2018-08-10 15:55:41 +02:00
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2018-08-10 15:55:41 +02:00
source _common.sh
2018-08-10 14:59:24 +02:00
source /usr/share/yunohost/helpers
2018-08-10 15:55:41 +02:00
#=================================================
2024-01-29 17:25:45 +01:00
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
2024-01-29 17:25:45 +01:00
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
2024-01-29 17:25:45 +01:00
if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then
yunohost service remove "$app"
fi
2020-07-24 18:32:57 +02:00
# Remove the dedicated systemd config
ynh_remove_systemd_config
2018-08-10 15:55:41 +02:00
# Remove the dedicated NGINX config
ynh_remove_nginx_config
2020-09-17 10:57:58 +02:00
# Remove the dedicated PHP-FPM config
2020-07-24 18:32:57 +02:00
ynh_remove_fpm_config
2020-07-24 18:32:57 +02:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed"