made sure icecast_pass was copied to airtime directory upon reprovision

This commit is contained in:
Robb Ebright 2020-01-09 07:58:29 -05:00
parent cbf999bd09
commit 1c89675f6e
1 changed files with 4 additions and 3 deletions

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