From db7e7df4bf681a5ac371f0002a9062b82e5101fb Mon Sep 17 00:00:00 2001 From: Mickael-Martin Date: Tue, 29 Jan 2019 18:57:24 +0100 Subject: [PATCH] add conf file for template --- scripts/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index b468c1b..e55ffce 100644 --- a/scripts/install +++ b/scripts/install @@ -378,6 +378,14 @@ yunohost app ssowatconf #================================================= zabbixFullpath=https://$domain$path_url 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 \ --form enter=Sign+in \