diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2013-09-19 01:39:31 +0000 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2013-09-19 01:39:31 +0000 |
commit | 5e1ccabdf749871e9b9f382aa3e844a1831dddf1 (patch) | |
tree | 9268cfc5a421b91457c595b11051b946ca0fa791 | |
parent | 4af0725a7eaf98d49aa1700149a72467925afb3b (diff) | |
download | init-system-helpers-5e1ccabdf749871e9b9f382aa3e844a1831dddf1.tar.gz |
Bugfix: check whether /var/lib/systemd/deb-systemd-helper-enabled exists (Thanks Alf Gaida)
fixes #723693
-rw-r--r-- | debian/init-system-helpers.postinst | 4 |
1 files changed, 3 insertions, 1 deletions
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# |