better logging
This commit is contained in:
parent
3d135a9f4a
commit
aca651a1b4
|
@ -172,6 +172,8 @@ set -e
|
||||||
|
|
||||||
echo -e "\n******************************** Install Begin *********************************"
|
echo -e "\n******************************** Install Begin *********************************"
|
||||||
rm -rf "/usr/lib/airtime"
|
rm -rf "/usr/lib/airtime"
|
||||||
|
mkdir -p /usr/lib/airtime
|
||||||
|
|
||||||
if [ "$python_service" -eq "0" ]; then
|
if [ "$python_service" -eq "0" ]; then
|
||||||
$AIRTIMEROOT/python_apps/python-virtualenv/virtualenv-install.sh
|
$AIRTIMEROOT/python_apps/python-virtualenv/virtualenv-install.sh
|
||||||
|
|
||||||
|
@ -208,6 +210,7 @@ if [ "$mediamonitor" = "t" -o "$pypo" = "t" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#An attempt to force apache to realize that files are updated on upgrade...
|
||||||
touch /usr/share/airtime/public/index.php
|
touch /usr/share/airtime/public/index.php
|
||||||
|
|
||||||
if [ "$python_service" -eq "0" ]; then
|
if [ "$python_service" -eq "0" ]; then
|
||||||
|
|
|
@ -72,7 +72,6 @@ if [ "$python_service" -eq "0" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p /usr/lib/airtime
|
|
||||||
cp -R $AIRTIMEROOT/utils /usr/lib/airtime
|
cp -R $AIRTIMEROOT/utils /usr/lib/airtime
|
||||||
cp -R $AIRTIMEROOT/python_apps/std_err_override /usr/lib/airtime
|
cp -R $AIRTIMEROOT/python_apps/std_err_override /usr/lib/airtime
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ require_once(__DIR__.'/airtime-constants.php');
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
$iniExists = file_exists("/etc/airtime/airtime.conf");
|
$iniExists = file_exists("/etc/airtime/airtime.conf");
|
||||||
if ($iniExists){
|
if ($iniExists) {
|
||||||
//reinstall, Will ask if we should rewrite config files.
|
//reinstall, Will ask if we should rewrite config files.
|
||||||
require_once(AirtimeInstall::GetAirtimeSrcDir().'/application/configs/conf.php');
|
require_once(AirtimeInstall::GetAirtimeSrcDir().'/application/configs/conf.php');
|
||||||
$CC_CONFIG = Config::getConfig();
|
$CC_CONFIG = Config::getConfig();
|
||||||
|
|
|
@ -192,6 +192,7 @@ def check_dj_client(user,password) =
|
||||||
ret = get_process_lines("python /usr/lib/airtime/pypo/bin/liquidsoap_scripts/liquidsoap_auth.py --dj #{user} #{password}")
|
ret = get_process_lines("python /usr/lib/airtime/pypo/bin/liquidsoap_scripts/liquidsoap_auth.py --dj #{user} #{password}")
|
||||||
#ret has now the value of the live client (dj1,dj2, or djx), or "ERROR"/"unknown" ...
|
#ret has now the value of the live client (dj1,dj2, or djx), or "ERROR"/"unknown" ...
|
||||||
hd = list.hd(ret)
|
hd = list.hd(ret)
|
||||||
|
log("Live DJ authenticated: #{hd}")
|
||||||
hd == "True"
|
hd == "True"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,7 @@ class PypoFetch(Thread):
|
||||||
tn.write('exit\n')
|
tn.write('exit\n')
|
||||||
tn.read_all()
|
tn.read_all()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.error(str(e))
|
logger.error(traceback.format_exc())
|
||||||
finally:
|
finally:
|
||||||
lock.release()
|
lock.release()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue