diff --git a/debian/init-system-helpers.postinst b/debian/init-system-helpers.postinst index 30b611e..6afcaec 100644 --- a/debian/init-system-helpers.postinst +++ b/debian/init-system-helpers.postinst @@ -4,7 +4,9 @@ set -e # See http://bugs.debian.org/722524 if dpkg --compare-versions "$2" lt "1.9"; then - find /var/lib/systemd/deb-systemd-helper-enabled -type f -exec chmod 644 '{}' \; + if [ -d /var/lib/systemd/deb-systemd-helper-enabled ]; then + find /var/lib/systemd/deb-systemd-helper-enabled -type f -exec chmod 644 '{}' \; + fi fi #DEBHELPER#