aboutsummaryrefslogtreecommitdiffstats
path: root/quassel.install
diff options
context:
space:
mode:
authorJohannes Löthberg <demizide@gmail.com>2013-06-10 05:42:08 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-01 16:03:36 +0200
commite68f1feeba702895816accba5c81a6a445a0524e (patch)
treea5f33aca4912c2de1f47e4afaa2fbcab4bf89a57 /quassel.install
downloadpkgbuilds-e68f1feeba702895816accba5c81a6a445a0524e.tar.xz
Added quassel-light/
Diffstat (limited to 'quassel.install')
-rw-r--r--quassel.install26
1 files changed, 26 insertions, 0 deletions
diff --git a/quassel.install b/quassel.install
new file mode 100644
index 0000000..488466b
--- /dev/null
+++ b/quassel.install
@@ -0,0 +1,26 @@
+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
+}
+
+pre_remove() {
+ systemctl stop quassel.service
+}
+
+post_remove() {
+ userdel quassel
+}