1
0
Fork 0
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:
tytan652 2021-01-09 08:45:54 +01:00 committed by tituspijean
parent 9726a65f3e
commit ae1cc8ddae

View file

@ -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
#================================================= #=================================================