Prepare 030puppet for ubuntu-24, SC-2522

This commit is contained in:
Patrik Holmqvist 2024-11-21 15:01:42 +01:00
parent 7b4de81cbd
commit c019dbeef4
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -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 \