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

45 lines
1.3 KiB
Text
Raw Permalink Normal View History

2022-04-30 21:19:50 +02:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
2022-05-05 16:47:03 +02:00
source ynh_install_ruby__2
2022-04-30 21:19:50 +02:00
source /usr/share/yunohost/helpers
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
2022-09-02 01:04:03 +02:00
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
2022-04-30 21:19:50 +02:00
# Remove the dedicated NGINX config
ynh_remove_nginx_config
#=================================================
# REMOVE DEPENDENCIES
#=================================================
2023-04-21 11:51:03 +02:00
#REMOVEME? ynh_script_progression --message="Removing dependencies..." --weight=1
2022-04-30 21:19:50 +02:00
# Remove metapackage and its dependencies
2022-05-05 16:47:03 +02:00
ynh_remove_nodejs
ynh_remove_ruby
2022-04-30 21:19:50 +02:00
#=================================================
# SPECIFIC REMOVE
#=================================================
# REMOVE VARIOUS FILES
#=================================================
2022-09-02 01:04:03 +02:00
ynh_script_progression --message="Removing various files..." --weight=1
2022-04-30 21:19:50 +02:00
# Remove a cron file
ynh_secure_remove --file="/etc/cron.d/$app"
#=================================================
# END OF SCRIPT
#=================================================
2022-09-02 01:04:03 +02:00
ynh_script_progression --message="Removal of $app completed" --last