1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00

fix: remove "--no-remove" for linux-image install

If we let it this way it may prevent linux-image-$arch to be downgraded
This commit is contained in:
tytan652 2021-01-09 11:18:28 +01:00 committed by tituspijean
parent f9256d4466
commit b8b855f59b

View file

@ -59,7 +59,10 @@ arch=$(ynh_detect_arch)
linuximage_version=$(ynh_package_version --package=linux-image-$arch)
if [[ $linuximage_version == *"bpo10"* ]]
then
ynh_package_install linux-image-$arch/stable
# Downgrading using ynh_package_install (exploded) without "--no-remove"
# It will remove wireguard-ynh-deps and wireguard but they will be reinstalled throught upgrade process
ynh_apt --option Dpkg::Options::=--force-confdef \
--option Dpkg::Options::=--force-confold install linux-image-$arch/stable
fi
#=================================================