summarylogtreecommitdiffstats
path: root/hop.install
diff options
context:
space:
mode:
authorStefan Husmann2016-01-10 14:24:51 +0100
committerStefan Husmann2016-01-10 14:24:51 +0100
commit37a5802349ec63d5fb3d28432cc3f34f7ec9373c (patch)
treefba442cce3395eed86d1b548f6f7261b40e4f18e /hop.install
downloadaur-37a5802349ec63d5fb3d28432cc3f34f7ec9373c.tar.gz
initial upload
Diffstat (limited to 'hop.install')
-rw-r--r--hop.install25
1 files changed, 25 insertions, 0 deletions
diff --git a/hop.install b/hop.install
new file mode 100644
index 00000000000..d6b64deeae8
--- /dev/null
+++ b/hop.install
@@ -0,0 +1,25 @@
+# arg 1: the new package version
+post_install() {
+ echo "==> hop: Edit the config under /etc/hop/hoprc.hop before using HOP"
+ groupadd -g 8080 hop &>/dev/null
+ mkdir -p /var/lib/hop &>/dev/null
+ useradd -u 8080 -g hop -d /var/lib/hop -s /bin/true hop &>/dev/null
+ gpasswd -a hop audio &>/dev/null
+ chown hop:hop -R /var/lib/hop
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+# arg 1: the old package version
+pre_remove() {
+ userdel hop &>/dev/null
+}
+
+op=$1
+shift
+
+$op $*