summaryrefslogtreecommitdiff
path: root/libre/bitlbee-libre/bitlbee.install
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-08-21 17:18:25 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-08-21 17:18:25 -0300
commit114fb7278eab9dbcf3b8be9a2b12416f328ca389 (patch)
tree87c5ddb5b32f34fafa23686f21189e84da74d284 /libre/bitlbee-libre/bitlbee.install
parentecf103cd9b27cbb6ded954018c3b042df5f06f29 (diff)
downloadabslibre-114fb7278eab9dbcf3b8be9a2b12416f328ca389.tar.gz
abslibre-114fb7278eab9dbcf3b8be9a2b12416f328ca389.tar.bz2
abslibre-114fb7278eab9dbcf3b8be9a2b12416f328ca389.zip
mv bitlbee{,-libre}-nonprism and adding bitlbee-libre to libre repo
Diffstat (limited to 'libre/bitlbee-libre/bitlbee.install')
-rw-r--r--libre/bitlbee-libre/bitlbee.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/libre/bitlbee-libre/bitlbee.install b/libre/bitlbee-libre/bitlbee.install
new file mode 100644
index 000000000..aa5a81a70
--- /dev/null
+++ b/libre/bitlbee-libre/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
+}