summarylogtreecommitdiffstats
path: root/hop.install
diff options
context:
space:
mode:
authorhaawda2019-03-14 21:52:15 +0100
committerhaawda2019-03-14 21:52:15 +0100
commit9abd94f09b3e84d0c77f1f8e19139f81dc624048 (patch)
treee638b89536ae8ad3c9c25420e8f55a7f41740fe0 /hop.install
parent7c0a79b59e30d4cd02ba208b46699dabe9db8b2f (diff)
downloadaur-9abd94f09b3e84d0c77f1f8e19139f81dc624048.tar.gz
adapt path for bigloo
Diffstat (limited to 'hop.install')
-rw-r--r--hop.install9
1 files changed, 9 insertions, 0 deletions
diff --git a/hop.install b/hop.install
index 5b7a61b3343..d6b64deeae8 100644
--- a/hop.install
+++ b/hop.install
@@ -1,3 +1,4 @@
+# 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
@@ -7,10 +8,18 @@ post_install() {
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 $*