update
This commit is contained in:
parent
8705375fe6
commit
05a2fc93ae
|
@ -13,7 +13,7 @@ systemctl reload nginx
|
||||||
uplink1_rtmp_ips=("37.27.21.27" "185.193.19.223" "137.59.95.164")
|
uplink1_rtmp_ips=("37.27.21.27" "185.193.19.223" "137.59.95.164")
|
||||||
UPLINK1_RTMP=$(cat <<EOF
|
UPLINK1_RTMP=$(cat <<EOF
|
||||||
rm -rf uplink1.urmic.org
|
rm -rf uplink1.urmic.org
|
||||||
echo "Pulling latest changes from remote Git..."
|
echo "Pulling uplink1 changes from remote Git..."
|
||||||
git clone https://devdatt:$1@git.dbhatt.org/serverwa/uplink1.urmic.org.git
|
git clone https://devdatt:$1@git.dbhatt.org/serverwa/uplink1.urmic.org.git
|
||||||
cd uplink1.urmic.org
|
cd uplink1.urmic.org
|
||||||
cp nginx.conf /etc/nginx/
|
cp nginx.conf /etc/nginx/
|
||||||
|
@ -22,15 +22,15 @@ rm -rf uplink1.urmic.org
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
for ip in "${uplink1_rtmp_ips[@]}"; do
|
for ip in "${uplink1_rtmp_ips[@]}"; do
|
||||||
ssh -i id_rsa -o StrictHostKeyChecking=no root@$ip "$UPLINK1_RTMP"
|
|
||||||
echo "Current ip: $ip"
|
echo "Current ip: $ip"
|
||||||
|
ssh -i id_rsa -o StrictHostKeyChecking=no root@$ip "$UPLINK1_RTMP"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# update streamer.urmic.org
|
# update streamer.urmic.org
|
||||||
STREAMER_URMIC_ORG=$(cat <<EOF
|
STREAMER_URMIC_ORG=$(cat <<EOF
|
||||||
rm -rf streamer.urmic.org
|
rm -rf streamer.urmic.org
|
||||||
echo "Pulling latest changes from remote Git..."
|
echo "Pulling stremer.urmic.org changes from remote Git..."
|
||||||
git clone https://devdatt:$1@git.dbhatt.org/serverwa/streamer.urmic.org.git
|
git clone https://devdatt:$1@git.dbhatt.org/serverwa/streamer.urmic.org.git
|
||||||
cd streamer.urmic.org
|
cd streamer.urmic.org
|
||||||
cp icecast.xml /etc/icecast2/
|
cp icecast.xml /etc/icecast2/
|
||||||
|
@ -38,11 +38,11 @@ systemctl reload icecast2
|
||||||
rm -rf streamer.urmic.org
|
rm -rf streamer.urmic.org
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
ssh -i id_rsa -o StrictHostKeyChecking=no root@$ip "$STREAMER_URMIC_ORG"
|
ssh -i id_rsa -o StrictHostKeyChecking=no root@172.16.99.221 "$STREAMER_URMIC_ORG"
|
||||||
|
|
||||||
|
|
||||||
# update channels.urmic.org
|
# update channels.urmic.org
|
||||||
channel_rtmp_ips=("172.16.99.181" "172.16.99.182" "172.16.99.183" "172.16.99.184" "172.16.99.185" "172.16.99.186" "172.16.99.187")
|
channel_rtmp_ips=("172.16.99.181" "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")
|
||||||
CHANNEL_URMIC_ORG=$(cat <<EOF
|
CHANNEL_URMIC_ORG=$(cat <<EOF
|
||||||
rm -rf channel.urmic.org
|
rm -rf channel.urmic.org
|
||||||
echo "Pulling latest changes from remote Git..."
|
echo "Pulling latest changes from remote Git..."
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# update channels.urmic.org
|
# update channels.urmic.org
|
||||||
channel_rtmp_ips=("172.16.99.181" "172.16.99.182" "172.16.99.183" "172.16.99.184" "172.16.99.185" "172.16.99.186" "172.16.99.187")
|
channel_rtmp_ips=("172.16.99.181" "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")
|
||||||
CHANNEL_URMIC_ORG=$(cat <<EOF
|
CHANNEL_URMIC_ORG=$(cat <<EOF
|
||||||
rm -rf channel.urmic.org
|
rm -rf channel.urmic.org
|
||||||
echo "Pulling latest changes from remote Git..."
|
echo "Pulling latest changes from remote Git..."
|
||||||
|
@ -11,6 +11,6 @@ rm -rf channel.urmic.org
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
for ip in "${channel_rtmp_ips[@]}"; do
|
for ip in "${channel_rtmp_ips[@]}"; do
|
||||||
ssh -i id_rsa -o StrictHostKeyChecking=no root@$ip "$CHANNEL_URMIC_ORG"
|
|
||||||
echo "Current ip: $ip"
|
echo "Current ip: $ip"
|
||||||
|
ssh -i id_rsa -o StrictHostKeyChecking=no root@$ip "$CHANNEL_URMIC_ORG"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue