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

fix(really): backports kernel removal

Just forget how to create bash variable
This commit is contained in:
tytan652 2021-01-10 11:17:34 +01:00 committed by tituspijean
parent 2204e15983
commit 758aef11a8

View file

@ -65,10 +65,10 @@ then
--option Dpkg::Options::=--force-confold install linux-image-$arch/stable
#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)
if [[ $linuxkernel_version == *"bpo"* ]]
then
ynh_package_remove "linux-image-$linuxkernel_version"
ynh_package_remove linux-image-$linuxkernel_version
echo "You've been using an experimental version of wireguard_ynh, which was using the backports version of the linux kernel.
Now wireguard_ynh use a DKMS module allowing itself to be used with the stable kernel, then the backports one was removed and a reboot is needed to go back to the stable one." > mail_to_send