1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lxd_ynh.git synced 2024-09-03 19:45:53 +02:00

fix getcwd() failed error

This commit is contained in:
Kay0u 2021-05-25 14:44:10 +02:00
parent cf6b31a789
commit 2edb4f821e
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 4 additions and 0 deletions

View file

@ -14,6 +14,8 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_clean_setup () {
ynh_exec_warn_less popd
ynh_secure_remove --file="$go_tmp"
ynh_secure_remove --file="$lxd_tmp"
}

View file

@ -31,6 +31,8 @@ ynh_script_progression --message="Backing up the app before upgrading (may take
# Backup the current version of the app
ynh_backup_before_upgrade
ynh_clean_setup () {
ynh_exec_warn_less popd
ynh_secure_remove --file="$go_tmp"
ynh_secure_remove --file="$lxd_tmp"
# Restore it if the upgrade fails