diff --git a/install.sh b/install.sh index f0b0f29..1b74980 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,7 @@ if ! [ "$(basename $0)" = "install.sh" ]; then && cd /tmp/zaf-installer \ && curl -f -k -s -L -o - https://raw.githubusercontent.com/limosek/zaf/master/install.sh >install.sh \ && chmod +x install.sh \ - && exec ./install.sh + && exec ./install.sh defconf fi ZAF_CFG_FILE=/etc/zaf.conf @@ -82,6 +82,8 @@ zaf_detect_pkg() { if which opkg >/dev/null; then ZAF_PKG="opkg" ZAF_AGENT_RESTART="/etc/init.d/zabbix_agentd restart" + ZAF_AGENT_CONFIGD="/var/run/zabbix_agentd.conf.d/" + ZAF_AGENT_CONFIG="/etc/zabbix_agentd.conf" ZAF_CURL_INSECURE=1 return fi diff --git a/lib/zaf.lib.sh b/lib/zaf.lib.sh index 066edb5..ac18861 100644 --- a/lib/zaf.lib.sh +++ b/lib/zaf.lib.sh @@ -235,7 +235,7 @@ zaf_show_installed_plugins() { zaf_list_plugins() { local cfile local plugin - cd ${ZAF_PLUGINS_DIR}; ls --hide '.' -1 + cd ${ZAF_PLUGINS_DIR}; ls -1 } zaf_show_plugin() {