summaryrefslogtreecommitdiffstats
path: root/zabbix-agent/zabbix-agent.install
blob: 4ea130791daf290f5bbc50f734223a8c31fd60ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
  groupadd zabbix
  useradd -g zabbix -d /dev/null zabbix 
  chown -R zabbix:zabbix /var/log/zabbix /var/run/zabbix /etc/zabbix
}

post_remove() {
   userdel zabbix
   rm -rf /var/run/zabbix
}

op=$1
shift
$op $*