mirror of
https://github.com/YunoHost-Apps/archivist_ynh.git
synced 2024-09-03 18:15:55 +02:00
54 lines
1.4 KiB
Text
54 lines
1.4 KiB
Text
|
#!/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"
|