diff --git a/centos-debian-compat/debian/deb_folder/centos-debian-compat.install b/centos-debian-compat/debian/deb_folder/centos-debian-compat.install index 5f3b490a6..a4dcd77dc 100644 --- a/centos-debian-compat/debian/deb_folder/centos-debian-compat.install +++ b/centos-debian-compat/debian/deb_folder/centos-debian-compat.install @@ -1 +1 @@ -/lib/systemd/system-preset/* +/etc/systemd/system-preset/* diff --git a/centos-debian-compat/debian/deb_folder/centos-debian-compat.links b/centos-debian-compat/debian/deb_folder/centos-debian-compat.links new file mode 100644 index 000000000..ec3d5e677 --- /dev/null +++ b/centos-debian-compat/debian/deb_folder/centos-debian-compat.links @@ -0,0 +1,2 @@ +# enable compatibility between Debian and Centos +/lib/lsb/init-functions /etc/init.d/functions diff --git a/centos-debian-compat/debian/deb_folder/postinst b/centos-debian-compat/debian/deb_folder/postinst deleted file mode 100644 index 1a917706c..000000000 --- a/centos-debian-compat/debian/deb_folder/postinst +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -set -e - -echo "source /lib/lsb/init-functions" > /etc/init.d/functions - -#DEBHELPER# diff --git a/centos-debian-compat/debian/deb_folder/rules b/centos-debian-compat/debian/deb_folder/rules index db22663a4..0023bd023 100644 --- a/centos-debian-compat/debian/deb_folder/rules +++ b/centos-debian-compat/debian/deb_folder/rules @@ -4,8 +4,8 @@ dh $@ override_dh_auto_install: - install -d debian/tmp/lib/systemd/system-preset - install -m 544 stx/systemd/99-default-disable.preset debian/tmp/lib/systemd/system-preset - install -m 544 stx/systemd/90-default.preset debian/tmp/lib/systemd/system-preset - install -m 544 stx/systemd/85-debpkg-issues.preset debian/tmp/lib/systemd/system-preset + install -d debian/tmp/etc/systemd/system-preset + install -m 544 stx/systemd/99-default-disable.preset debian/tmp/etc/systemd/system-preset + install -m 544 stx/systemd/90-default.preset debian/tmp/etc/systemd/system-preset + install -m 544 stx/systemd/85-debpkg-issues.preset debian/tmp/etc/systemd/system-preset dh_install diff --git a/centos-debian-compat/source/stx/systemd/85-debpkg-issues.preset b/centos-debian-compat/source/stx/systemd/85-debpkg-issues.preset index d8edb9f54..fc784dfd1 100644 --- a/centos-debian-compat/source/stx/systemd/85-debpkg-issues.preset +++ b/centos-debian-compat/source/stx/systemd/85-debpkg-issues.preset @@ -7,7 +7,6 @@ # with all packages installed regardless of personality. # config-gate.spec -enable config.service #enable worker-config.service # controllerconfig.spec