Commit dbc7e3b1 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

We should create /etc/sudoers.d as it may be non-existent at time of installation

parent f9529f64
...@@ -213,6 +213,7 @@ server: zabbix-server-service zabbix-server-config httpd-conf ...@@ -213,6 +213,7 @@ server: zabbix-server-service zabbix-server-config httpd-conf
systemctl enable zabbix-server.service systemctl enable zabbix-server.service
@echo "$$ZABBIX_SERVER_CONFIG" >> /etc/config/zabbix @echo "$$ZABBIX_SERVER_CONFIG" >> /etc/config/zabbix
install -v -Dm755 zabbix_server /usr/share/easycwmp/functions/zabbix install -v -Dm755 zabbix_server /usr/share/easycwmp/functions/zabbix
install -d -m 750 /etc/sudoers.d
echo "Defaults !requiretty" > /etc/sudoers.d/nmap echo "Defaults !requiretty" > /etc/sudoers.d/nmap
echo "ALL ALL=(ALL) NOPASSWD: /usr/bin/nmap" >> /etc/sudoers.d/nmap echo "ALL ALL=(ALL) NOPASSWD: /usr/bin/nmap" >> /etc/sudoers.d/nmap
rm -rf zabbix-5.4.2 rm -rf zabbix-5.4.2
...@@ -285,6 +286,7 @@ proxy: zabbix-proxy-service zabbix-proxy-config ...@@ -285,6 +286,7 @@ proxy: zabbix-proxy-service zabbix-proxy-config
systemctl enable zabbix-proxy.service systemctl enable zabbix-proxy.service
@echo "$$ZABBIX_PROXY_CONFIG" >> /etc/config/zabbix @echo "$$ZABBIX_PROXY_CONFIG" >> /etc/config/zabbix
install -v -Dm755 zabbix_proxy /usr/share/easycwmp/functions/zabbix install -v -Dm755 zabbix_proxy /usr/share/easycwmp/functions/zabbix
install -d -m 750 /etc/sudoers.d
echo "Defaults !requiretty" > /etc/sudoers.d/nmap echo "Defaults !requiretty" > /etc/sudoers.d/nmap
echo "ALL ALL=(ALL) NOPASSWD: /usr/bin/nmap" >> /etc/sudoers.d/nmap echo "ALL ALL=(ALL) NOPASSWD: /usr/bin/nmap" >> /etc/sudoers.d/nmap
rm -rf zabbix-5.4.2 rm -rf zabbix-5.4.2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment