update
This commit is contained in:
parent
c2a0df3913
commit
632a315556
|
@ -15,7 +15,7 @@ for ip in "${account_ips[@]}"; do
|
|||
echo "Current ip: $ip"
|
||||
done
|
||||
|
||||
#update account.urmic.org
|
||||
#update cdn.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")
|
||||
CDN_PHP=$(cat <<EOF
|
||||
rm -rf ott_x64_json
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
#update account.urmic.org
|
||||
account_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")
|
||||
ACCOUNT_PHP=$(cat <<EOF
|
||||
rm -rf OttDemo4
|
||||
rm -rf /var/www/account.urmic.org/*
|
||||
#update cdn.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")
|
||||
CDN_PHP=$(cat <<EOF
|
||||
rm -rf ott_x64_json
|
||||
rm -rf /var/www/cdn.urmic.org/*
|
||||
echo "Pulling latest changes from remote Git..."
|
||||
git clone https://devdatt:$1@git.dbhatt.org/devdatt/OttDemo4.git
|
||||
cd OttDemo4
|
||||
cp -r html/* /var/www/account.urmic.org/
|
||||
rm -rf OttDemo4
|
||||
git clone https://devdatt:$1@git.dbhatt.org/serverwa/ott_x64_json.git
|
||||
cd ott_x64_json
|
||||
cp -r * /var/www/cdn.urmic.org/
|
||||
rm -rf ott_x64_json
|
||||
EOF
|
||||
)
|
||||
for ip in "${account_ips[@]}"; do
|
||||
ssh -i id_rsa -o StrictHostKeyChecking=no root@$ip "$ACCOUNT_PHP"
|
||||
for ip in "${cdn_ips[@]}"; do
|
||||
ssh -i id_rsa -o StrictHostKeyChecking=no root@$ip "$CDN_PHP"
|
||||
echo "Current ip: $ip"
|
||||
done
|
Loading…
Reference in New Issue