mirror of
https://github.com/YunoHost-Apps/zabbix_ynh.git
synced 2024-09-03 20:36:14 +02:00
update path conf change
This commit is contained in:
parent
dd5fbf7fb7
commit
9f3578ac8c
1 changed files with 9 additions and 0 deletions
|
@ -68,7 +68,16 @@ import_template(){
|
||||||
confUserPpath=$(find /var/cache/yunohost/ -name "etc_zabbix_zabbix_agentd.d_userP_yunohost.conf")
|
confUserPpath=$(find /var/cache/yunohost/ -name "etc_zabbix_zabbix_agentd.d_userP_yunohost.conf")
|
||||||
bashUserPpath=$(find /var/cache/yunohost/ -name "etc_zabbix_zabbix_agentd.d_yunohost.sh")
|
bashUserPpath=$(find /var/cache/yunohost/ -name "etc_zabbix_zabbix_agentd.d_yunohost.sh")
|
||||||
|
|
||||||
|
|
||||||
cp "$sudoUserPpath" /etc/sudoers.d/zabbix
|
cp "$sudoUserPpath" /etc/sudoers.d/zabbix
|
||||||
|
|
||||||
|
if [ -d /etc/zabbix/zabbix_agentd.d/ ];then
|
||||||
|
mv /etc/zabbix/zabbix_agentd.d/ /etc/zabbix/zabbix_agentd.conf.d/
|
||||||
|
fi
|
||||||
|
if [ ! -L /etc/zabbix/zabbix_agentd.d/ ];then
|
||||||
|
ln -s /etc/zabbix/zabbix_agentd.d/ /etc/zabbix/zabbix_agentd.conf.d/
|
||||||
|
fi
|
||||||
|
|
||||||
cp "$confUserPpath" /etc/zabbix/zabbix_agentd.d/userP_yunohost.conf
|
cp "$confUserPpath" /etc/zabbix/zabbix_agentd.d/userP_yunohost.conf
|
||||||
cp "$bashUserPpath" /etc/zabbix/zabbix_agentd.d/yunohost.sh
|
cp "$bashUserPpath" /etc/zabbix/zabbix_agentd.d/yunohost.sh
|
||||||
chmod a+x /etc/zabbix/zabbix_agentd.d/yunohost.sh
|
chmod a+x /etc/zabbix/zabbix_agentd.d/yunohost.sh
|
||||||
|
|
Loading…
Add table
Reference in a new issue