diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-26 22:12:00 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-26 22:12:00 -0300 |
commit | e3ef7422ec8daa79e8dcc62d0304f09c95cb8cec (patch) | |
tree | 3e16bd19af53d2e54926f2fda57d06a2087c96ff /nonprism/bitlbee-nonprism/bitlbee.install | |
parent | ee64fe57f2fee41d5f0af229306879b4f1b0cee8 (diff) |
remove libre suffix on bitlbee and openshot nonprism packages
Diffstat (limited to 'nonprism/bitlbee-nonprism/bitlbee.install')
-rw-r--r-- | nonprism/bitlbee-nonprism/bitlbee.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/nonprism/bitlbee-nonprism/bitlbee.install b/nonprism/bitlbee-nonprism/bitlbee.install new file mode 100644 index 000000000..c8a8f93a1 --- /dev/null +++ b/nonprism/bitlbee-nonprism/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 +} |