1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ifm_ynh.git synced 2024-09-03 18:45:52 +02:00
This commit is contained in:
ericgaspar 2021-08-28 19:06:49 +02:00
parent d963f07992
commit 326932dccd
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 13 additions and 1 deletions

View file

@ -20,7 +20,7 @@
"email": ""
},
"requirements": {
"yunohost": ">= 4.2.4"
"yunohost": ">= 4.2.8"
},
"multi_instance": true,
"services": [

View file

@ -18,6 +18,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
datadir=$(ynh_app_setting_get --app=$app --key=datadir)
#=================================================
# REMOVE APP MAIN DIR
@ -27,6 +28,17 @@ ynh_script_progression --message="Removing app main directory..." --weight=1
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
#=================================================
# REMOVE DATA DIR
#=================================================
# Remove the app data directory with the command `yunohost app remove --purge`
if [ "$YNH_APP_PURGE" == true ]
then
ynh_script_progression --message="Removing $app data directory..." --weight=2
ynh_secure_remove --file="$datadir"
fi
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================