aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-12-27 03:58:39 -0300
committerdequis <dx@dxzone.com.ar>2016-12-27 03:58:39 -0300
commit9cdcef077ed523966f508a3721944a16425734cb (patch)
tree7819f623ad66f0112a8aeccece2fa35fb20ffbc2
parent398b3198a0f02a4c448bd9c04a0349ba2606e6a7 (diff)
debian: Don't skip debhelper steps when upgrading
I think this is the thing that was stopping systemd units from enabling
-rw-r--r--debian/bitlbee-common.postinst4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/bitlbee-common.postinst b/debian/bitlbee-common.postinst
index e0e371d8..477bdee4 100644
--- a/debian/bitlbee-common.postinst
+++ b/debian/bitlbee-common.postinst
@@ -70,10 +70,10 @@ fi
## If we're upgrading, we'll probably skip this next part
if [ -d $CONFDIR ] && chown -R bitlbee: $CONFDIR; then
echo 'BitlBee (probably) already installed, skipping user/configdir installation'
- exit 0
+else
+ adduser --system --group --disabled-login --disabled-password --home /var/lib/bitlbee/ bitlbee
fi
-adduser --system --group --disabled-login --disabled-password --home /var/lib/bitlbee/ bitlbee
chmod 700 /var/lib/bitlbee/
## Can't do this in packaging phase: Don't know the UID yet. Access to