From 4c4d4f272e9ff6553ab41fc42cce675baf1e79fa Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 11 Sep 2022 19:47:21 +0200 Subject: [PATCH] Damn the past, stay level 6 --- scripts/upgrade | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 56065d5..8a94fbc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -70,28 +70,6 @@ then ynh_permission_update --permission=main --remove=visitors fi -# Downgrade linux-image-$arch if updated to the buster-backports version -linuximage_version=$(ynh_package_version --package=linux-image-$architecture) -if [[ $linuximage_version == *"bpo10"* ]] -then - # 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 - ynh_apt --allow-downgrades --option Dpkg::Options::=--force-confdef \ - --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 - linuxkernel_version=$(uname -r) - if [[ $linuxkernel_version == *"bpo"* ]] - then - 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 - - ynh_send_readme_to_admin --app_message="mail_to_send" --recipients="admin" --type=upgrade - fi -fi - # Drop sudoers file if present if [ -f "/etc/sudoers.d/${app}_ynh" ]; then ynh_secure_remove /etc/sudoers.d/${app}_ynh