From c019dbeef44c605dc95bd34d62b221fd1e0e452a Mon Sep 17 00:00:00 2001 From: Patrik Holmqvist Date: Thu, 21 Nov 2024 15:01:42 +0100 Subject: [PATCH] Prepare 030puppet for ubuntu-24, SC-2522 --- global/pre-tasks.d/030puppet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global/pre-tasks.d/030puppet b/global/pre-tasks.d/030puppet index c431f0a3..e6e53649 100755 --- a/global/pre-tasks.d/030puppet +++ b/global/pre-tasks.d/030puppet @@ -13,7 +13,7 @@ if ! test -f "${stamp}" -a -f /usr/bin/puppet; then . /etc/os-release # Note: in posix shell, string comparison is done with a single = - if [ "${ID}" = "debian" ] && [ "${VERSION_ID}" -ge 12 ]; then + if [ "${ID}" = "debian" ] && [ "${VERSION_ID}" -ge 12 ] || ([ "${ID}" = "ubuntu" ] && $(dpkg --compare-versions ${VERSION_ID} ge 24.04)) ; then apt-get -y install \ cron \ puppet-module-camptocamp-augeas \