+enable_periodic_license_check() { + cloud_id=$(cloud-id 2>/dev/null) || cloud_id="" + if echo "$cloud_id" | grep -q "^gce"; then + if check_is_lts "${UBUNTU_CODENAME}"; then + if [ ! -f $MACHINE_TOKEN_FILE ]; then + touch $LICENSE_CHECK_MARKER_FILE + fi + fi + fi +}
What is the expected behavior here if the user upgrades to this version of the package on an LTS, and then upgrades to a non-LTS release? What is the expected behavior if the user is running on a non-LTS release, and then upgrades to a non-LTS release? (Current behavior with this implementation: on upgrade to an LTS release, the timer will be enabled, because a new version of the package is configured and this code runs again. On upgrade to a non-LTS release, the timer will not be disabled.) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1942929 Title: [SRU] ubuntu-advantage-tools (27.2.2 -> 27.3) Xenial, Bionic, Focal, Hirsute To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1942929/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs