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:
parent
f9256d4466
commit
b8b855f59b
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue