Updated override process for existing airtime installs
This commit is contained in:
parent
df2576e5a0
commit
f7c1b6f755
18
install
18
install
|
@ -237,11 +237,22 @@ echo "\____|__ /___||____|_ / |____| |___\____|__ /_______ / "
|
||||||
echo -e " \/ \/ \/ \/ \n"
|
echo -e " \/ \/ \/ \/ \n"
|
||||||
|
|
||||||
if [ -f /etc/airtime/airtime.conf ]; then
|
if [ -f /etc/airtime/airtime.conf ]; then
|
||||||
# If we don't remove the existing python files in /usr/lib, services won't work properly
|
set +e
|
||||||
rm -rf /usr/lib/airtime/
|
verbose "Stopping airtime services..."
|
||||||
echo -e "Existing Airtime installation detected. Your current /etc/airtime/airtime.conf\
|
service airtime-playout stop-with-monit
|
||||||
|
service airtime-media-monitor stop-with-monit
|
||||||
|
service airtime-liquidsoap stop-with-monit
|
||||||
|
verbose "...Done"
|
||||||
|
|
||||||
|
echo "Existing Airtime installation detected. Your current /etc/airtime/airtime.conf\
|
||||||
will be moved to /etc/airtime/airtime.conf.bak"
|
will be moved to /etc/airtime/airtime.conf.bak"
|
||||||
|
# If we don't remove the existing python files in /usr/lib and the
|
||||||
|
# /etc/init.d startup scripts, services won't work properly
|
||||||
|
rm -rf /usr/lib/airtime/
|
||||||
|
rm /etc/init.d/airtime-*
|
||||||
|
|
||||||
mv /etc/airtime/airtime.conf /etc/airtime/airtime.conf.bak
|
mv /etc/airtime/airtime.conf /etc/airtime/airtime.conf.bak
|
||||||
|
set -e
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$apache" = "f" -a ${_i} -eq 1 ]; then
|
if [ "$apache" = "f" -a ${_i} -eq 1 ]; then
|
||||||
|
@ -328,6 +339,7 @@ if [ "$icecast" = "t" ]; then
|
||||||
set +e
|
set +e
|
||||||
service icecast2 start
|
service icecast2 start
|
||||||
set -e
|
set -e
|
||||||
|
verbose "...Done"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
loud "\n-----------------------------------------------------"
|
loud "\n-----------------------------------------------------"
|
||||||
|
|
Loading…
Reference in New Issue