summaryrefslogtreecommitdiff
path: root/debian/libsane1.postinst
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-10-12 10:24:53 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-10-12 10:24:53 +0200
commit736573a8db4bd098da28a4831ce4c601f880aacd (patch)
treeca8b05929c1fbc232d28e38e3cb5527f54b61414 /debian/libsane1.postinst
parent48bb1feef2e1b36a4cb7f014e58146ad18402364 (diff)
Add creation for the lock directory
Diffstat (limited to 'debian/libsane1.postinst')
-rw-r--r--debian/libsane1.postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/libsane1.postinst b/debian/libsane1.postinst
index 971103e..88528f0 100644
--- a/debian/libsane1.postinst
+++ b/debian/libsane1.postinst
@@ -9,6 +9,11 @@ case "$1" in
addgroup --quiet --system scanner || true
fi
+ if [ -d /var/lock/sane ]; then
+ mkdir /var/lock/sane
+ fi
+ chown saned:saned /var/lock/sane
+
;;
abort-upgrade|abort-remove|abort-deconfigure)