From 114fb7278eab9dbcf3b8be9a2b12416f328ca389 Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Wed, 21 Aug 2013 17:18:25 -0300 Subject: mv bitlbee{,-libre}-nonprism and adding bitlbee-libre to libre repo --- nonprism/bitlbee-libre-nonprism/bitlbee.install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nonprism/bitlbee-libre-nonprism/bitlbee.install (limited to 'nonprism/bitlbee-libre-nonprism/bitlbee.install') diff --git a/nonprism/bitlbee-libre-nonprism/bitlbee.install b/nonprism/bitlbee-libre-nonprism/bitlbee.install new file mode 100644 index 000000000..aa5a81a70 --- /dev/null +++ b/nonprism/bitlbee-libre-nonprism/bitlbee.install @@ -0,0 +1,15 @@ +post_install() { + getent group bitlbee &>/dev/null || groupadd -r -g 65 bitlbee >/dev/null + getent passwd bitlbee &>/dev/null || useradd -r -u 65 -g bitlbee -d /var/lib/bitlbee -s /bin/false -c bitlbee bitlbee >/dev/null + systemd-tmpfiles --create bitlbee.conf +} + +post_upgrade() { + post_install +} + +post_remove() { + getent passwd bitlbee &>/dev/null && userdel bitlbee >/dev/null + getent group bitlbee &>/dev/null && groupdel bitlbee >/dev/null + true +} -- cgit v1.2.3