diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-26 21:05:55 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-26 21:05:55 -0300 |
commit | e96423b261d094f18bd81b1941ba6b07ec1fa4c5 (patch) | |
tree | 2f580cded271d1b92656ecaa4a98f5e56dc41b98 /libre/bitlbee-parabola/bitlbee.install | |
parent | 3e22240d69b8415840612e64e56f3a4e7ada7ae9 (diff) | |
download | abslibre-e96423b261d094f18bd81b1941ba6b07ec1fa4c5.tar.gz abslibre-e96423b261d094f18bd81b1941ba6b07ec1fa4c5.tar.bz2 abslibre-e96423b261d094f18bd81b1941ba6b07ec1fa4c5.zip |
add parabola suffix on some packages
Diffstat (limited to 'libre/bitlbee-parabola/bitlbee.install')
-rw-r--r-- | libre/bitlbee-parabola/bitlbee.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libre/bitlbee-parabola/bitlbee.install b/libre/bitlbee-parabola/bitlbee.install new file mode 100644 index 000000000..c8a8f93a1 --- /dev/null +++ b/libre/bitlbee-parabola/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 +} |