| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #!/bin/bash
- #=================================================
- # GENERIC START
- #=================================================
- # IMPORT GENERIC HELPERS
- #=================================================
- source _common.sh
- source /usr/share/yunohost/helpers
- #=================================================
- # LOAD SETTINGS
- #=================================================
- ynh_script_progression --message="Loading installation settings..." --weight=2
- app=$YNH_APP_INSTANCE_NAME
- final_path=$(ynh_app_setting_get --app=$app --key=final_path)
- #=================================================
- # STANDARD REMOVE
- #=================================================
- # REMOVE DEPENDENCIES
- #=================================================
- ynh_script_progression --message="Removing dependencies..." --weight=7
- # Remove metapackage and its dependencies
- ynh_remove_app_dependencies
- #=================================================
- # REMOVE APP MAIN DIR
- #=================================================
- ynh_script_progression --message="Removing app main directory..."
- # Remove the app directory securely
- ynh_secure_remove --file="$final_path"
- #=================================================
- # REMOVE LOGROTATE CONFIGURATION
- #=================================================
- ynh_script_progression --message="Removing logrotate configuration..."
- # Remove the app-specific logrotate config
- ynh_remove_logrotate
- #=================================================
- # SPECIFIC REMOVE
- #=================================================
- # REMOVE THE CRON FILE
- #=================================================
- # Remove a cron file
- ynh_secure_remove --file="/etc/cron.d/$app"
- ynh_script_progression --message="Removing backup directory..." --weight=5
- # Remove the backup directory
- ynh_secure_remove --file="/home/yunohost.app/$app/backup"
- #=================================================
- # END OF SCRIPT
- #=================================================
- ynh_script_progression --message="Removal of $app completed" --last
|