diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 71b2478f..ebd41150 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -76,6 +76,6 @@ preprocess-debian: - debian script: - apt-get update -q - - apt-get install -y apparmor + - apt-get install -y apparmor apparmor-profiles - dpkg --install $PKGDEST/* - apparmor_parser --preprocess /etc/apparmor.d 1> /dev/null diff --git a/debian/rules b/debian/rules index 335d5b09..e6cf3409 100755 --- a/debian/rules +++ b/debian/rules @@ -12,6 +12,7 @@ override_dh_auto_configure: ./configure --distribution=debian override_dh_install: - find systemd/ -type f -exec \ - install -Dm0644 {} $$(pwd)/debian/apparmor.d/usr/lib/systemd/system/$(basename {})/apparmor.conf \; + mv systemd system + find system -type f -exec \ + install -Dm0644 {} $$(pwd)/debian/apparmor.d/usr/lib/systemd/{}.d/apparmor.conf \; dh_install