Merge pull request #946 from Robbt/icecast-reprovision-pass-fix

made sure icecast_pass was copied to airtime directory upon reprovision
This commit is contained in:
Kyle Robbertze 2020-01-09 15:13:44 +02:00 committed by GitHub
commit 9ea0afbcba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1118,11 +1118,12 @@ if [ ! -d "/etc/airtime" ]; then
verbose "\n * Creating /etc/airtime/ directory..."
mkdir /etc/airtime
# need to copy the icecast_pass from temp to /etc/airtime so installer can read it
cp /tmp/icecast_pass /etc/airtime/icecast_pass
fi
if [ ! -f "/etc/airtime/airtime.conf" ]; 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
chown -R ${web_user}:${web_user} /etc/airtime