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

48 lines
1.3 KiB
Text
Raw Normal View History

2017-11-14 16:05:26 +01:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
2022-03-13 15:22:35 +01:00
# IMPORT GENERIC HELPERS
#=================================================
2022-03-13 15:22:35 +01:00
source experimental_helper.sh
source _common.sh
2020-11-17 23:51:51 +01:00
source /usr/share/yunohost/helpers
2022-03-13 15:22:35 +01:00
#=================================================
2024-01-30 16:37:46 +01:00
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
2024-01-30 16:37:46 +01:00
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
2019-06-06 22:39:49 +02:00
# Stop service
ynh_systemd_action --service_name "uwsgi-app@$app.service" --action stop
2022-03-13 15:22:35 +01:00
# Remove uwsgi config
ynh_remove_uwsgi_service
# Remove the app-specific logrotate config
ynh_remove_logrotate
# Remove the dedicated NGINX config
ynh_remove_nginx_config
2017-11-16 21:10:21 +01:00
2022-03-13 15:22:35 +01:00
#=================================================
# SPECIFIC REMOVE
#=================================================
# REMOVE VARIOUS FILES
#=================================================
2024-01-31 19:46:18 +01:00
ynh_script_progression --message="Removing various files..." --weight=1
2017-11-14 16:05:26 +01:00
2022-03-13 15:22:35 +01:00
# Remove the log files
ynh_secure_remove --file="/var/log/$app"
2024-01-30 16:37:46 +01:00
# Remove the log files
ynh_secure_remove --file="/var/log/uwsgi/$app"
2022-03-13 15:22:35 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2018-03-15 23:33:57 +01:00
2019-06-06 22:39:49 +02:00
ynh_script_progression --message="Removal of $app completed" --last