mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
ynh_detect_arch is now deprecated
This commit is contained in:
parent
31c4a2176c
commit
806e6d4b18
1 changed files with 2 additions and 3 deletions
|
@ -71,14 +71,13 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Downgrade linux-image-$arch if updated to the buster-backports version
|
# Downgrade linux-image-$arch if updated to the buster-backports version
|
||||||
arch=$(ynh_detect_arch)
|
linuximage_version=$(ynh_package_version --package=linux-image-$architecture)
|
||||||
linuximage_version=$(ynh_package_version --package=linux-image-$arch)
|
|
||||||
if [[ $linuximage_version == *"bpo10"* ]]
|
if [[ $linuximage_version == *"bpo10"* ]]
|
||||||
then
|
then
|
||||||
# Downgrading using ynh_package_install apt command without "--no-remove" and with "--allow-downgrades"
|
# Downgrading using ynh_package_install apt command without "--no-remove" and with "--allow-downgrades"
|
||||||
# It will remove wireguard-ynh-deps and wireguard but they will be reinstalled throught upgrade process
|
# It will remove wireguard-ynh-deps and wireguard but they will be reinstalled throught upgrade process
|
||||||
ynh_apt --allow-downgrades --option Dpkg::Options::=--force-confdef \
|
ynh_apt --allow-downgrades --option Dpkg::Options::=--force-confdef \
|
||||||
--option Dpkg::Options::=--force-confold install linux-image-$arch/stable
|
--option Dpkg::Options::=--force-confold install linux-image-$architecture/stable
|
||||||
|
|
||||||
#Remove backports kernel if running on it and send a mail to the admin to ask him to reboot
|
#Remove backports kernel if running on it and send a mail to the admin to ask him to reboot
|
||||||
linuxkernel_version=$(uname -r)
|
linuxkernel_version=$(uname -r)
|
||||||
|
|
Loading…
Add table
Reference in a new issue