13 lines
393 B
Bash
13 lines
393 B
Bash
# update streamer.urmic.org
|
|
STREAMER_URMIC_ORG=$(cat <<EOF
|
|
rm -rf streamer.urmic.org
|
|
echo "Pulling latest changes from remote Git..."
|
|
git clone https://devdatt:$1@git.dbhatt.org/serverwa/streamer.urmic.org.git
|
|
cd streamer.urmic.org
|
|
cp icecast.xml /etc/icecast2/
|
|
systemctl reload icecast2
|
|
rm -rf streamer.urmic.org
|
|
EOF
|
|
)
|
|
ssh -i id_rsa -o StrictHostKeyChecking=no root@$ip "$STREAMER_URMIC_ORG"
|