summarylogtreecommitdiffstats
path: root/hop.install
blob: 5b7a61b3343fbd2a8039f4d42ab37067f5da6e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  userdel hop &>/dev/null
}