update script to improve garage configuration

This commit is contained in:
oiseauroch
2022-09-12 11:00:57 +02:00
parent bbcc67e597
commit abff1b3ce2
6 changed files with 32 additions and 27 deletions

View File

@@ -23,7 +23,7 @@ port_api=$(ynh_app_setting_get --app=$app --key=port_api)
port_web=$(ynh_app_setting_get --app=$app --key=port_web)
datadir=$(ynh_app_setting_get --app=$app --key=datadir)
bootstrap_peers=$(ynh_app_setting_get --app=$app --key=bootstrap_peers)
nbd_index=$(ynh_app_setting_get --app=$app --key=nbd_index)
#=================================================
# STANDARD REMOVE
#=================================================
@@ -54,6 +54,14 @@ ynh_script_progression --message="Removing logrotate configuration..." --time --
ynh_remove_logrotate
#=================================================
# REMOVE VIRTUAL DISK
#=================================================
ynh_script_progression --message="umount virtual disk..." --time --weight=1
# Remove the app directory securely
$final_path/umount_disk.sh $nbd_index
#=================================================
# REMOVE APP MAIN DIR
#=================================================