From 8c4af56eab902acafa291763f950ee7b3331938d Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 10 Apr 2018 22:14:43 -0300 Subject: debian: Fix postinst error with no /var/lib/bitlbee (Patch from debbug#816200, changelog modified slightly by dx) --- debian/bitlbee-common.postinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debian/bitlbee-common.postinst') diff --git a/debian/bitlbee-common.postinst b/debian/bitlbee-common.postinst index 93ef5010..84c5543e 100644 --- a/debian/bitlbee-common.postinst +++ b/debian/bitlbee-common.postinst @@ -34,7 +34,9 @@ else adduser --system --group --disabled-login --disabled-password --home /var/lib/bitlbee/ bitlbee fi -chmod 700 /var/lib/bitlbee/ +if [ -d /var/lib/bitlbee ]; then + chmod 700 /var/lib/bitlbee/ +fi ## Can't do this in packaging phase: Don't know the UID yet. Access to ## the file should be limited, now that it stores passwords. Added -- cgit v1.2.3