1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/terraforming-mars_ynh.git synced 2024-09-03 20:36:05 +02:00
terraforming-mars_ynh/scripts/remove

48 lines
1.4 KiB
Bash
Executable file

#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STOP AND REMOVE SERVICE
#=================================================
ynh_script_progression "Stopping and removing the systemd service..."
# Remove the dedicated systemd config
ynh_config_remove_systemd
#=================================================
# REMOVE LOGROTATE CONFIGURATION
#=================================================
ynh_script_progression "Removing logrotate configuration..."
# Remove the app-specific logrotate config
ynh_config_remove_logrotate
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
ynh_script_progression "Removing NGINX web server configuration..."
# Remove the dedicated NGINX config
ynh_config_remove_nginx
#=================================================
# REMOVE DEPENDENCIES
#=================================================
ynh_script_progression "Removing dependencies..."
# Remove metapackage and its dependencies
#=================================================
# REMOVE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression "Removing service in YunoHost..."
yunohost service remove $app
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression "Removal of $app completed"