From f00e9126188cece33d71ae5563d86f45e5ca50d6 Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 11 Aug 2021 17:19:23 +0200 Subject: [PATCH] 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. --- install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install b/install index 724dad100..cc8f989a5 100755 --- a/install +++ b/install @@ -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