summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2013-09-19 01:39:31 +0000
committerMichael Stapelberg <michael@stapelberg.de>2013-09-19 01:39:31 +0000
commit5e1ccabdf749871e9b9f382aa3e844a1831dddf1 (patch)
tree9268cfc5a421b91457c595b11051b946ca0fa791
parent4af0725a7eaf98d49aa1700149a72467925afb3b (diff)
downloadinit-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.postinst4
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#