diff --git a/dist/debian/rules b/dist/debian/rules index 620f315df..a5c398f81 100755 --- a/dist/debian/rules +++ b/dist/debian/rules @@ -98,7 +98,7 @@ override_dh_auto_install: @dh_auto_install -Smakefile -D$(DEB_SC_BUILDDIR) @./scripts/install-dependencies $(pkgdir)/usr/libexec # Apparmor userns profile needed on Ubuntu 24.04, or unconfined placeholder for older versions. - if ([ $(OS_MAJOR) -gt 23 ] || [ "$OS_VERSION" = "23.10" ]) && [[ $(OS_NAME) = "Ubuntu" ]]; then \ + if ([ $(OS_MAJOR) -gt 23 ] || [ "$(OS_VERSION)" = "23.10" ]) && [[ $(OS_NAME) = "Ubuntu" ]]; then \ echo "Ubuntu 24.04 or newer - installing apparmor userns profile"; \ install -D -m 644 dist/debian/apparmor-userns $(pkgdir)/etc/apparmor.d/apptainer; \ else \