mirror of
https://github.com/YunoHost-Apps/zabbix_ynh.git
synced 2024-09-03 20:36:14 +02:00
Update upgrade to import conf file userp template
This commit is contained in:
parent
db7e7df4bf
commit
e32c602f3b
1 changed files with 9 additions and 0 deletions
|
@ -69,6 +69,15 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
zabbixFullpath=https://$domain$path_url
|
zabbixFullpath=https://$domain$path_url
|
||||||
localpath=$(find /var/cache/yunohost/ -name "Template_Yunohost.xml")
|
localpath=$(find /var/cache/yunohost/ -name "Template_Yunohost.xml")
|
||||||
|
sudoUserPpath=$(find /var/cache/yunohost/ -name "etc_sudoers.d_zabbix")
|
||||||
|
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")
|
||||||
|
|
||||||
|
cp $sudoUserPpath /etc/sudoers.d/zabbix
|
||||||
|
cp $confUserPpath /etc/zabbix/zabbix_agentd.d/userP_yunohost.conf
|
||||||
|
cp $bashUserPpath /etc/zabbix/zabbix_agentd.d/yunohost.sh
|
||||||
|
chmod a+x /etc/zabbix/zabbix_agentd.d/yunohost.sh
|
||||||
|
|
||||||
|
|
||||||
curl -s --cookie cookiejar.txt --cookie-jar cookiejar.txt \
|
curl -s --cookie cookiejar.txt --cookie-jar cookiejar.txt \
|
||||||
--form enter=Sign+in \
|
--form enter=Sign+in \
|
||||||
|
|
Loading…
Add table
Reference in a new issue