my_idlers_ynh/scripts/remove

39 lines
1.1 KiB
Text
Raw Normal View History

2014-10-20 18:55:53 +02:00
#!/bin/bash
2017-06-02 18:34:13 +02:00
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2014-10-20 18:55:53 +02:00
2017-06-05 13:11:07 +02:00
source _common.sh
source /usr/share/yunohost/helpers
### Settings are automatically loaded as bash variables
### in every app script context, therefore typically these will exist:
### - $domain
### - $path
### - $language
### - $install_dir
### - $port
### ...
2024-09-03 13:55:06 +02:00
### For remove operations:
### - the core will deprovision every resource defined in the manifest **after** this script is ran
### this includes removing the install directory, and data directory (if --purge was used)
2017-06-02 18:34:13 +02:00
#=================================================
# REMOVE SYSTEM CONFIGURATIONS
2017-06-02 18:34:13 +02:00
#=================================================
2024-06-20 23:49:43 +02:00
ynh_script_progression "Removing system configurations related to $app..."
### This should be a symetric version of what happens in the install script
#ynh_config_remove_fail2ban
2024-06-20 23:49:43 +02:00
ynh_config_remove_nginx
2017-06-02 18:34:13 +02:00
2019-02-10 15:02:38 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2024-06-20 23:49:43 +02:00
ynh_script_progression "Removal of $app completed"