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

36 lines
970 B
Text
Raw Normal View History

2017-07-12 01:45:37 +02:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD REMOVE
#=================================================
2022-01-22 20:55:44 +01:00
# REMOVE LOGROTATE CONFIGURATION
#=================================================
ynh_script_progression --message="Removing logrotate configuration..."
# Remove the app-specific logrotate config
ynh_remove_logrotate
2017-07-12 01:45:37 +02:00
2022-01-22 20:55:44 +01:00
# Remove the dedicated NGINX config
2017-07-12 01:45:37 +02:00
ynh_remove_nginx_config
2022-01-22 20:55:44 +01:00
# Remove the dedicated PHP-FPM config
ynh_remove_fpm_config
# Remove the log files
ynh_secure_remove --file="/var/log/$app"
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed"