From a7a709df517db57ab2fef71fb52e805b48e0d401 Mon Sep 17 00:00:00 2001 From: VoidVolker Date: Fri, 8 Jul 2016 14:42:19 +0300 Subject: [PATCH] [+] HP_HOST option --- init-scripts/init.ubuntu | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init-scripts/init.ubuntu b/init-scripts/init.ubuntu index c4c0b8dc..9a7e094f 100755 --- a/init-scripts/init.ubuntu +++ b/init-scripts/init.ubuntu @@ -105,7 +105,12 @@ load_settings() { PORT_OPTS=" --port=${HP_PORT} " } - DAEMON_OPTS=" Headphones.py --quiet --daemon --nolaunch --pidfile=${PID_FILE} --datadir=${DATA_DIR} ${PORT_OPTS}${EXTRA_DAEMON_OPTS}" + # Host config + [ -n "$HP_HOST" ] && { + HOST_OPTS=" --host=${HP_HOST} " + } + + DAEMON_OPTS=" Headphones.py --quiet --daemon --nolaunch --pidfile=${PID_FILE} --datadir=${DATA_DIR} ${PORT_OPTS} ${HOST_OPTS} ${EXTRA_DAEMON_OPTS}" SETTINGS_LOADED=TRUE fi