From 9e6b0435d589e32ab93291d4a119fff5892c680e Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Wed, 10 Feb 2016 13:03:40 -0500 Subject: bitlbee-libpurple-3.4.1-1.parabola1: updating version --- pcr/bitlbee-libpurple/bitlbee.install | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pcr/bitlbee-libpurple/bitlbee.install (limited to 'pcr/bitlbee-libpurple/bitlbee.install') diff --git a/pcr/bitlbee-libpurple/bitlbee.install b/pcr/bitlbee-libpurple/bitlbee.install new file mode 100644 index 000000000..c8a8f93a1 --- /dev/null +++ b/pcr/bitlbee-libpurple/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 +} -- cgit v1.2.3-54-g00ecf