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