summaryrefslogtreecommitdiff
path: root/debian/libsane1.postinst
diff options
context:
space:
mode:
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)