mirror of
https://github.com/YunoHost-Apps/lxd_ynh.git
synced 2024-09-03 19:45:53 +02:00
fix upgrade
This commit is contained in:
parent
23ef8a2058
commit
4a204d826b
1 changed files with 5 additions and 5 deletions
|
@ -23,11 +23,6 @@ ynh_script_progression --message="Ensuring downward compatibility..."
|
|||
|
||||
sed -i "/root:1000000:65536 # Added by lxd#/d" /etc/sub{u,g}id
|
||||
|
||||
# Remove old file
|
||||
if [ -f "/usr/local/bin/lxd-p2c" ]; then
|
||||
ynh_secure_remove --file="/usr/local/bin/lxd-p2c"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
|
@ -46,6 +41,11 @@ ynh_clean_setup () {
|
|||
# Exit if an error occurs during the execution of the script
|
||||
ynh_abort_if_errors
|
||||
|
||||
# Remove old file
|
||||
if [ -f "/usr/local/bin/lxd-p2c" ]; then
|
||||
ynh_secure_remove --file="/usr/local/bin/lxd-p2c"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# STANDARD UPGRADE STEPS
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue