Merge pull request #1289 from jooola/fix/fail_on_install_fap

Fix installation failure on install -fap
This commit is contained in:
Kyle Robbertze 2021-08-11 18:07:46 +02:00 committed by GitHub
commit 74e271ec7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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