]> arthur.barton.de Git - ZabbixExtensions.git/commitdiff
deploy.sh: Make sure /usr/local/etc/zabbix/zabbix_agentd.conf.d exists
authorAlexander Barton <alex@barton.de>
Fri, 15 Apr 2016 13:45:05 +0000 (15:45 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 15 Apr 2016 13:45:05 +0000 (15:45 +0200)
deploy.sh

index 3c1d9564920171db1eaff029c88ab657a00bfd6f..c925fc8d14232cfa230889e0c6375c4248310b39 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/" \