aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-04-10 22:14:43 -0300
committerdequis <dx@dxzone.com.ar>2018-04-10 22:14:43 -0300
commit8c4af56eab902acafa291763f950ee7b3331938d (patch)
treebdfa62cb0b626c1b8516ed162f05256d575bc1b6
parent246b98bbdf221448fd7a638fea04373ed1612de5 (diff)
debian: Fix postinst error with no /var/lib/bitlbee
(Patch from debbug#816200, changelog modified slightly by dx)
-rw-r--r--debian/bitlbee-common.postinst4
-rw-r--r--debian/changelog5
2 files changed, 8 insertions, 1 deletions
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
diff --git a/debian/changelog b/debian/changelog
index ff6ec7e1..fbcc341f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,13 @@
bitlbee (3.5.1-1.1) UNRELEASED; urgency=medium
+ [ dequis ]
* Remove bitlbee-plugin-skype and skyped (obsolete)
* Enable only bitlbee.service, not bitlbee.socket too
+ [ Sean Whitton ]
+ * Add existence check to chmod call in bitlbee-common.postinst
+ (Closes: #816200).
+
-- dequis <dx@dxzone.com.ar> Mon, 19 Mar 2018 22:18:43 -0300
bitlbee (3.5.1-1) unstable; urgency=medium