diff --git a/ott_update/update_all.sh b/ott_update/update_all.sh index aed9665..d4121a2 100644 --- a/ott_update/update_all.sh +++ b/ott_update/update_all.sh @@ -27,6 +27,23 @@ cp -r * /var/www/cdn.urmic.org/ rm -rf ott_x64_json EOF ) +for ip in "${cdn_ips[@]}"; do + ssh -i id_rsa -o StrictHostKeyChecking=no root@$ip "$CDN_PHP" + echo "Current ip: $ip" +done + +#update stream.urmic.org +cdn_ips=("172.16.99.182" "172.16.99.183" "172.16.99.184" "172.16.99.185" "172.16.99.186" "172.16.99.187" "172.16.99.188") +CDN_PHP=$(cat < /etc/fail2ban/jail.d/stream.conf< /etc/ssl/private/bundle.crt<