mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
build: add a way to restore the right linux-image
This commit is contained in:
parent
9726a65f3e
commit
ae1cc8ddae
1 changed files with 9 additions and 0 deletions
|
@ -54,6 +54,15 @@ then
|
||||||
ynh_app_setting_set --app=$app --key=is_public --value=0
|
ynh_app_setting_set --app=$app --key=is_public --value=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Downgrade linux-image-$arch if updated to the buster-backports version
|
||||||
|
arch=$(ynh_detect_arch)
|
||||||
|
linuximage_version=$(ynh_package_version --package=linux-image-$arch)
|
||||||
|
if [[ $linuximage_version == *"bpo10"* ]]
|
||||||
|
then
|
||||||
|
ynh_package_remove linux-image-$arch
|
||||||
|
ynh_package_install linux-image-$arch
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue