More work on monitless installer
This commit is contained in:
parent
4043ebfd25
commit
ad4b61e89f
|
@ -319,7 +319,7 @@ loud "\n-----------------------------------------------------"
|
|||
loud " * Installing Airtime Services * "
|
||||
loud "-----------------------------------------------------"
|
||||
|
||||
loudCmd "apt-get -y --force-yes install liquidsoap python python-virtaulenv"
|
||||
loudCmd "apt-get -y --force-yes install liquidsoap python python-virtualenv"
|
||||
loudCmd "$AIRTIMEROOT/python_apps/python-virtualenv/virtualenv-install.sh"
|
||||
|
||||
verbose "\n * Creating /usr/lib/airtime..."
|
||||
|
@ -332,7 +332,11 @@ chmod 755 /run/airtime
|
|||
chown -R ${web_user}:${web_user} /run/airtime
|
||||
verbose "...Done"
|
||||
|
||||
verbose "\n * Installing API client..."
|
||||
verbose "\n * Cpoying logging files..."
|
||||
cp -R ${AIRTIMEROOT}/python_apps/std_err_override /usr/lib/airtime/std_err_override
|
||||
verbose "...Done"
|
||||
|
||||
verbose "\n * Cpoying API client files..."
|
||||
cp -R ${AIRTIMEROOT}/python_apps/api_clients /usr/lib/airtime/api_clients
|
||||
verbose "...Done"
|
||||
|
||||
|
|
|
@ -213,6 +213,7 @@ class AirtimeApiClient(object):
|
|||
try:
|
||||
self.config = ConfigObj(config_path)
|
||||
self.config.update(api_config)
|
||||
self.logger.info(json.dumps(self.config))
|
||||
self.services = RequestProvider(self.config)
|
||||
except Exception, e:
|
||||
self.logger.error('Error loading config file: %s', config_path)
|
||||
|
|
|
@ -31,7 +31,7 @@ start () {
|
|||
#start-stop-daemon --start --quiet --chuid $USERID:$GROUPID \
|
||||
#--pidfile $PIDFILE --nicelevel -15 --startas $DAEMON
|
||||
start-stop-daemon --start --quiet --chuid $USERID:$GROUPID \
|
||||
--nicelevel -15 --startas $DAEMON --exec $EXEC
|
||||
--startas $DAEMON --exec $EXEC
|
||||
}
|
||||
|
||||
stop () {
|
||||
|
|
Loading…
Reference in New Issue