diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-08-20 01:03:50 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-08-20 01:03:50 -0300 |
commit | f6fdbc4ba29f50f77c6ec1cbce249569551c6cfc (patch) | |
tree | 64bf1197fd3f13baa8fb1ea30671540cf21c27f7 /nonprism/bitlbee-nonprism/bitlbee.install | |
parent | 54dc76aa52ec1f0feb46e36604fa7a15fa8062d6 (diff) | |
download | abslibre-f6fdbc4ba29f50f77c6ec1cbce249569551c6cfc.tar.gz abslibre-f6fdbc4ba29f50f77c6ec1cbce249569551c6cfc.tar.bz2 abslibre-f6fdbc4ba29f50f77c6ec1cbce249569551c6cfc.zip |
move coherence to nonprism repo
Diffstat (limited to 'nonprism/bitlbee-nonprism/bitlbee.install')
-rw-r--r-- | nonprism/bitlbee-nonprism/bitlbee.install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nonprism/bitlbee-nonprism/bitlbee.install b/nonprism/bitlbee-nonprism/bitlbee.install new file mode 100644 index 000000000..aa5a81a70 --- /dev/null +++ b/nonprism/bitlbee-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 +} |