diff options
Diffstat (limited to 'zabbix-agent/zabbix-agent.install')
-rw-r--r-- | zabbix-agent/zabbix-agent.install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/zabbix-agent/zabbix-agent.install b/zabbix-agent/zabbix-agent.install new file mode 100644 index 0000000..4ea1307 --- /dev/null +++ b/zabbix-agent/zabbix-agent.install @@ -0,0 +1,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 $* |