summarylogtreecommitdiffstats
path: root/icingaweb2.install
blob: eddc013003733b9c7a11d77f7dfccfd933741b4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_install() {
  getent group icingacmd &> /dev/null && usermod -a -G icingacmd http &> /dev/null

  #chown -R root:http /etc/webapps/icingaweb2
  chown -R root:http /etc/icingaweb
  chown -R http:http /var/log/icingaweb2
}

post_remove() {
  echo "    You may remove the user 'http' from group 'icingacmd' by running"
  echo "    'gpasswd -d http icingacmd' if no other icinga web interface is installed."
}