]> arthur.barton.de Git - ZabbixExtensions.git/blobdiff - deploy.sh
Fix backup_script.errors to not report errors when a job is running
[ZabbixExtensions.git] / deploy.sh
index 3c1d9564920171db1eaff029c88ab657a00bfd6f..81595f2fa86d34ab1d1bb075b70cc798c24f3451 100755 (executable)
--- a/deploy.sh
+++ b/deploy.sh
@@ -54,6 +54,8 @@ refresh_sudo() {
 for host in "$@"; do
        ax_msg - "$host ..."
 
+       ssh root@$host mkdir -p /usr/local/etc/zabbix/zabbix_agentd.conf.d
+
        # Zabbix agent configuration
        out=$(rsync -rt --delete --log-format=%f -e ssh --exclude Makefile \
         "$BASE_DIR/etc/zabbix_agentd.conf.d/" \
@@ -82,7 +84,7 @@ for host in "$@"; do
                        ax_msg 1 "Ok, updated sudo configuration."
                        refresh_sudo "$host"
                else
-                       ax_msg 0 "Ok, no for sudo configuration."
+                       ax_msg 0 "Ok, no changes for sudo configuration."
                fi
        else
                ax_msg 2 "Failed to sync sudo configuration to $host!"