summaryrefslogtreecommitdiff
path: root/nonprism/bitlbee/bitlbee.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-04 01:57:36 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-04 01:57:36 -0300
commit0be822175bb3cef0534b9a0597e84ae1ee6374ec (patch)
treec9a4fb91c61309280fd8201c7cb52789ce02a7c6 /nonprism/bitlbee/bitlbee.install
parent468e115b1432c745ce9ccf06d2fcca6b3cfb7227 (diff)
downloadabslibre-0be822175bb3cef0534b9a0597e84ae1ee6374ec.tar.gz
abslibre-0be822175bb3cef0534b9a0597e84ae1ee6374ec.tar.bz2
abslibre-0be822175bb3cef0534b9a0597e84ae1ee6374ec.zip
remove nonprism suffix and add complex pkgrel on nonprism packages
Diffstat (limited to 'nonprism/bitlbee/bitlbee.install')
-rw-r--r--nonprism/bitlbee/bitlbee.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/nonprism/bitlbee/bitlbee.install b/nonprism/bitlbee/bitlbee.install
new file mode 100644
index 000000000..c8a8f93a1
--- /dev/null
+++ b/nonprism/bitlbee/bitlbee.install
@@ -0,0 +1,22 @@
+post_install() {
+ if ! getent group bitlbee &>/dev/null; then
+ groupadd -r -g 65 bitlbee >/dev/null
+ fi
+ if ! getent passwd bitlbee &>/dev/null; then
+ useradd -r -u 65 -g bitlbee -d /var/lib/bitlbee -s /bin/false -c bitlbee bitlbee >/dev/null
+ fi
+ systemd-tmpfiles --create bitlbee.conf
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ if getent passwd bitlbee &>/dev/null; then
+ userdel bitlbee >/dev/null
+ fi
+ if getent group bitlbee &>/dev/null; then
+ groupdel bitlbee >/dev/null
+ fi
+}