Fix installation failure on install -fap

When installing Icecast manually, we don't want the installer to interfere
with the icecast.xml config file by changing the passwords.

The script was failing trying to copy the Icecast password file it didn't create.
This commit is contained in:
jo 2021-08-11 17:19:23 +02:00
parent 0f4466b9ab
commit f00e912618
1 changed files with 3 additions and 1 deletions

View File

@ -1152,9 +1152,11 @@ if [ ! -d "/etc/airtime" ]; then
mkdir /etc/airtime
fi
if [ ! -e "/etc/airtime/airtime.conf" ] && [ ! -e "/etc/airtime/airtime.conf.tmp" ]; then
if [ "$icecast" = "t" ]; then
if [ ! -e "/etc/airtime/airtime.conf" ] && [ ! -e "/etc/airtime/airtime.conf.tmp" ]; then
# need to copy the icecast_pass from temp to /etc/airtime so web-based installer can read it
cp /tmp/icecast_pass /etc/airtime/icecast_pass
fi
fi
chown -R ${web_user}:${web_user} /etc/airtime