diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2013-10-19 02:15:56 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-01 16:03:37 +0200 |
commit | 359bcde9555436504d1a5f3536c4428671fe5a9b (patch) | |
tree | df2b182018eca10ca00963dd758c8d656fd51d68 /quassel.install | |
parent | b320eb7c47a78ca50d9a14a3d05830d27ba0bf21 (diff) | |
download | pkgbuilds-359bcde9555436504d1a5f3536c4428671fe5a9b.tar.xz |
Reindent with tabs, minor style changes
Diffstat (limited to 'quassel.install')
-rw-r--r-- | quassel.install | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/quassel.install b/quassel.install index 488466b..2820623 100644 --- a/quassel.install +++ b/quassel.install @@ -1,26 +1,16 @@ post_install() { - useradd -r -s /bin/sh -d /var/lib/quassel quassel - mkdir -p /var/lib/quassel && chown -R quassel:quassel /var/lib/quassel - xdg-icon-resource forceupdate --theme hicolor &> /dev/null -} - -post_upgrade() { - [ `vercmp $2 0.5.2-1` -le 0 ] && ( - cat <<EOF - -==> - quasselcore now runs as the quassel user -==> - quasselcore now listens to port 127.0.0.1 by default -==> - both of above are configurable: /etc/conf.d/quassel -EOF - systemctl stop quassel.service - post_install - ) || true + useradd -r -s /bin/sh -d /var/lib/quassel quassel + mkdir -p /var/lib/quassel && chown -R quassel:quassel /var/lib/quassel + xdg-icon-resource forceupdate --theme hicolor &> /dev/null } pre_remove() { - systemctl stop quassel.service + systemctl disable quassel.service + systemctl stop quassel.service } post_remove() { - userdel quassel + userdel quassel } + +# vim: set ts=4 sw=4 noet: |