Icecast on port 80
This commit is contained in:
parent
ec184e0c14
commit
c0e6b42e03
|
@ -76,11 +76,10 @@ function icecast_update_daemon {
|
||||||
echo 'After=icecast2.service' >> /etc/systemd/system/ices2.service
|
echo 'After=icecast2.service' >> /etc/systemd/system/ices2.service
|
||||||
echo '' >> /etc/systemd/system/ices2.service
|
echo '' >> /etc/systemd/system/ices2.service
|
||||||
echo '[Service]' >> /etc/systemd/system/ices2.service
|
echo '[Service]' >> /etc/systemd/system/ices2.service
|
||||||
|
echo 'Type=oneshot' >> /etc/systemd/system/ices2.service
|
||||||
echo 'User=icecast2' >> /etc/systemd/system/ices2.service
|
echo 'User=icecast2' >> /etc/systemd/system/ices2.service
|
||||||
echo 'Group=icecast' >> /etc/systemd/system/ices2.service
|
echo 'Group=icecast' >> /etc/systemd/system/ices2.service
|
||||||
echo "ExecStart=/usr/bin/ices2 /etc/ices2/ices-playlist.xml" >> /etc/systemd/system/ices2.service
|
echo "ExecStart=/usr/bin/ices2 /etc/ices2/ices-playlist.xml" >> /etc/systemd/system/ices2.service
|
||||||
echo 'Restart=on-failure' >> /etc/systemd/system/ices2.service
|
|
||||||
echo 'RestartSec=10' >> /etc/systemd/system/ices2.service
|
|
||||||
echo '' >> /etc/systemd/system/ices2.service
|
echo '' >> /etc/systemd/system/ices2.service
|
||||||
echo '[Install]' >> /etc/systemd/system/ices2.service
|
echo '[Install]' >> /etc/systemd/system/ices2.service
|
||||||
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/ices2.service
|
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/ices2.service
|
||||||
|
@ -460,7 +459,7 @@ function install_icecast {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ICECAST_ONION_HOSTNAME=$(add_onion_service icecast ${ICECAST_PORT} ${ICECAST_ONION_PORT})
|
ICECAST_ONION_HOSTNAME=$(add_onion_service icecast 80 ${ICECAST_ONION_PORT})
|
||||||
|
|
||||||
sed -i -e "s|<source-password>[^<]*</source-password>|<source-password>$ICECAST_PASSWORD</source-password>|" \
|
sed -i -e "s|<source-password>[^<]*</source-password>|<source-password>$ICECAST_PASSWORD</source-password>|" \
|
||||||
-e "s|<relay-password>[^<]*</relay-password>|<relay-password>$ICECAST_PASSWORD</relay-password>|" \
|
-e "s|<relay-password>[^<]*</relay-password>|<relay-password>$ICECAST_PASSWORD</relay-password>|" \
|
||||||
|
|
Loading…
Reference in New Issue