From a29a35034d473ad9ca24f301b4920f24d20ee137 Mon Sep 17 00:00:00 2001 From: Kyle Robbertze Date: Wed, 22 Jan 2020 15:20:27 +0200 Subject: [PATCH 1/2] fix existing config check --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index bb62d98b1..9895e35b5 100755 --- a/install +++ b/install @@ -1120,7 +1120,7 @@ if [ ! -d "/etc/airtime" ]; then mkdir /etc/airtime fi -if [ ! -f "/etc/airtime/airtime.conf" ] && [ !-f "/etc/airtime/airtime.conf.tmp" ]; 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 From fffedd43c3954e8aaedb5a40c0ecb4b3ddaa7d1f Mon Sep 17 00:00:00 2001 From: Robb Ebright Date: Tue, 17 Mar 2020 11:22:11 -0400 Subject: [PATCH 2/2] Added qualifier to icecast check --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index 083126512..4d4a629d5 100755 --- a/install +++ b/install @@ -906,7 +906,7 @@ if [ "$icecast" = "t" ]; then icecast_config="/etc/icecast.xml" fi # only update icecast password if - if [ ! -f "/etc/airtime/airtime.conf" ] && [ !-f "/etc/airtime/airtime.conf.tmp" ]; then + if [ ! -e "/etc/airtime/airtime.conf" ] && [ ! -e "/etc/airtime/airtime.conf.tmp" ]; then icecast_pass=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-12};) echo $icecast_pass > /tmp/icecast_pass loud "\n New install detected setting icecast password to random value."