CC-5990, CC-5991 - Python cleanup, removed need for /usr/lib/airtime
This commit is contained in:
parent
cd102b984b
commit
875a9dfd8b
115 changed files with 248 additions and 212 deletions
33
install
33
install
|
@ -252,7 +252,10 @@ if [ -f /etc/airtime/airtime.conf ]; then
|
|||
will be moved to /etc/airtime/airtime.conf.tmp"
|
||||
# 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/
|
||||
if [ -d /usr/lib/airtime/ ]; then
|
||||
rm -rf /usr/lib/airtime/
|
||||
fi
|
||||
|
||||
rm /etc/init.d/airtime-*
|
||||
|
||||
if [ "$apache" = "t" ]; then
|
||||
|
@ -353,7 +356,7 @@ if [ "$icecast" = "t" ]; then
|
|||
verbose "\n * Enabling Icecast 2..."
|
||||
sed -i 's/ENABLE=false/ENABLE=true/g' /etc/default/icecast2
|
||||
set +e
|
||||
service icecast2 start
|
||||
loudCmd "service icecast2 start"
|
||||
set -e
|
||||
verbose "...Done"
|
||||
fi
|
||||
|
@ -367,38 +370,24 @@ loudCmd "apt-get -y --force-yes install liquidsoap python python-pip"
|
|||
loudCmd "pip install setuptools"
|
||||
verbose "...Done"
|
||||
|
||||
verbose "\n * Creating /usr/lib/airtime..."
|
||||
mkdir -p /usr/lib/airtime
|
||||
verbose "...Done"
|
||||
|
||||
verbose "\n * Creating /run/airtime..."
|
||||
mkdir -p /run/airtime
|
||||
chmod 755 /run/airtime
|
||||
chown -R ${web_user}:${web_user} /run/airtime
|
||||
verbose "...Done"
|
||||
|
||||
verbose "\n * Copying logging files..."
|
||||
cp -R ${AIRTIMEROOT}/python_apps/std_err_override /usr/lib/airtime/
|
||||
verbose "\n * Installing log writer..."
|
||||
loudCmd "python ${AIRTIMEROOT}/python_apps/std_err_override/setup.py install"
|
||||
verbose "...Done"
|
||||
|
||||
verbose "\n * Copying API client files..."
|
||||
cp -R ${AIRTIMEROOT}/python_apps/api_clients /usr/lib/airtime/
|
||||
verbose "...Done"
|
||||
|
||||
verbose "\n * Copying media-monitor files..."
|
||||
cp -R ${AIRTIMEROOT}/python_apps/media-monitor/media-monitor /usr/lib/airtime/
|
||||
cp -R ${AIRTIMEROOT}/python_apps/media-monitor/media-monitor2 /usr/lib/airtime/media-monitor/mm2
|
||||
verbose "\n * Installing API client..."
|
||||
loudCmd "python ${AIRTIMEROOT}/python_apps/api_clients/setup.py install"
|
||||
verbose "...Done"
|
||||
|
||||
verbose "\n * Installing media-monitor..."
|
||||
loudCmd "python ${AIRTIMEROOT}/python_apps/media-monitor/setup.py install"
|
||||
verbose "...Done"
|
||||
|
||||
verbose "\n * Copying pypo files..."
|
||||
mkdir -p /usr/lib/airtime/pypo
|
||||
cp -R ${AIRTIMEROOT}/python_apps/pypo/pypo /usr/lib/airtime/pypo/bin/
|
||||
verbose "...Done"
|
||||
|
||||
verbose "\n * Installing pypo..."
|
||||
loudCmd "python ${AIRTIMEROOT}/python_apps/pypo/setup.py install"
|
||||
verbose "...Done"
|
||||
|
@ -425,7 +414,7 @@ if [ ! -d /var/log/airtime ]; then
|
|||
|
||||
verbose "\n * Copying logrotate files..."
|
||||
cp ${AIRTIMEROOT}/airtime_mvc/build/airtime-php.logrotate /etc/logrotate.d/airtime-php
|
||||
cp /usr/lib/airtime/pypo/bin/liquidsoap_scripts/airtime-liquidsoap.logrotate /etc/logrotate.d/airtime-liquidsoap
|
||||
cp ${AIRTIMEROOT}/python_apps/pypo/pypo/liquidsoap_scripts/airtime-liquidsoap.logrotate /etc/logrotate.d/airtime-liquidsoap
|
||||
fi
|
||||
|
||||
verbose "\n * Setting permissions on /var/log/airtime..."
|
||||
|
@ -434,9 +423,7 @@ chown -R ${web_user}:${web_user} /var/log/airtime/
|
|||
|
||||
verbose "\n * Setting permissions on /var/tmp/airtime..."
|
||||
chmod -R a+x /var/tmp/airtime
|
||||
chmod 755 /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh
|
||||
chown -R ${web_user}:${web_user} /var/tmp/airtime/
|
||||
chown -R ${web_user}:${web_user} /usr/lib/airtime/
|
||||
|
||||
loud "\n-----------------------------------------------------"
|
||||
loud " * Installing PHP * "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue