| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #!/bin/bash
- #=================================================
- # GENERIC START
- #=================================================
- # IMPORT GENERIC HELPERS
- #=================================================
- source _common.sh
- source /usr/share/yunohost/helpers
- #=================================================
- # LOAD SETTINGS
- #=================================================
- app=$YNH_APP_INSTANCE_NAME
- final_path=$(ynh_app_setting_get $app final_path)
- #=================================================
- # STANDARD REMOVE
- #=================================================
- # REMOVE DEPENDENCIES
- #=================================================
- # Remove metapackage and its dependencies
- ynh_remove_app_dependencies
- #=================================================
- # REMOVE APP MAIN DIR
- #=================================================
- # Remove the app directory securely
- ynh_secure_remove "$final_path"
- #=================================================
- # REMOVE LOGROTATE CONFIGURATION
- #=================================================
- # Remove the app-specific logrotate config
- ynh_remove_logrotate
- #=================================================
- # SPECIFIC REMOVE
- #=================================================
- # REMOVE THE CRON FILE
- #=================================================
- # Remove a cron file
- ynh_secure_remove "/etc/cron.d/$app"
- # Remove the backup directory
- ynh_secure_remove "/home/yunohost.app/${app}_backup"
|