fixed new line in php

This commit is contained in:
Robbt 2020-01-03 20:14:02 -05:00
parent 9a027373e1
commit edaa2ead85
2 changed files with 5 additions and 2 deletions

View file

@ -894,7 +894,7 @@ if [ "$icecast" = "t" ]; then
else
icecast_unit_name="icecast"
fi
icecast_pass=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-12};echo;)
icecast_pass=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-12};)
echo $icecast_pass > /tmp/icecast_pass
xmlstarlet ed --inplace -u /icecast/authentication/source-password -v $icecast_pass /etc/icecast2/icecast.xml
xmlstarlet ed --inplace -u /icecast/authentication/relay-password -v $icecast_pass /etc/icecast2/icecast.xml