summarylogtreecommitdiffstats
path: root/hop.install
blob: d6b64deeae87a5d590c83e5c676c184ee7db0918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 $*