Преглед изворни кода

Minor bug fix of v-sync-dns-cluster

Problem Outlined: It seems that another script has dropped a file called history.log into the $VESTA/data/users folder causing v-sync-dns-cluster to throw a soft error about not finding /usr/local/vesta/data/users/history.log/dns.conf when syncing zones.

Fix: Tell the script to ignore that log file when syncing user domains and the output becomes clean.
cmstew пре 8 година
родитељ
комит
0e8b482ae2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      bin/v-sync-dns-cluster

+ 1 - 1
bin/v-sync-dns-cluster

@@ -49,7 +49,7 @@ for cluster in $hosts; do
     check_result $? "$HOST connection failed" $E_CONNECT
     check_result $? "$HOST connection failed" $E_CONNECT
 
 
     # Syncing user domains
     # Syncing user domains
-    user_list=$(ls $VESTA/data/users |grep -v "dns-cluster")
+    user_list=$(ls $VESTA/data/users |grep -v "dns-cluster" |grep -v "history.log")
     for user in $user_list; do
     for user in $user_list; do
         for str in $(cat $VESTA/data/users/$user/dns.conf); do
         for str in $(cat $VESTA/data/users/$user/dns.conf); do