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
|