Commit d20ee42d authored by David Trattnig's avatar David Trattnig
Browse files

Allow liquidsoap run as root inside Docker. #17

parent e5a78599
......@@ -126,6 +126,7 @@ fade_out_time="2.5"
[lqs]
liquidsoap_path="/home/david/.opam/4.08.0/bin/liquidsoap"
liquidsoap_working_dir="modules/liquidsoap/"
liquidsoap_as_root="false"
# Liquidsoap execution delay in seconds; Crucial to keep things in sync
lqs_delay_offset=1
......
......@@ -122,8 +122,9 @@ fade_out_time="2.5"
# all these settings from here to the bottom require a restart of the liquidsoap server
[lqs]
liquidsoap_path="/home/opam/.opam/4.08.0/bin/liquidsoap"
liquidsoap_path="/usr/bin/liquidsoap"
liquidsoap_working_dir="modules/liquidsoap/"
liquidsoap_as_root="true"
# Liquidsoap execution delay in seconds; Crucial to keep things in sync
lqs_delay_offset=1
......@@ -137,7 +138,7 @@ daemonuser="engineuser"
socketdir="/srv/modules/liquidsoap"
[audiofolder]
audiofolder="/home/opam/audio/source"
audiofolder="/var/audio/source"
[fallback]
# track_sensitive => fallback_folder track sensitivity
......
......@@ -124,6 +124,7 @@ fade_out_time="2.5"
[lqs]
liquidsoap_path="/home/engineuser/.opam/4.08.0/bin/liquidsoap"
liquidsoap_working_dir="modules/liquidsoap/"
liquidsoap_as_root="false"
# Liquidsoap execution delay in seconds; Crucial to keep things in sync
lqs_delay_offset=1
......
......@@ -24,6 +24,12 @@ config = list.hd(default=default_config, get_process_lines("ls /etc/aura/engine.
log("Config file used: #{config}")
ini = read_ini(config)
# ALLOW LIQUIDSOAP RUN AS ROOT
lqs_allow_root = list.assoc(default="false", "liquidsoap_as_root", ini)
if lqs_allow_root == "true" then
set("init.allow_root", true)
end
# TELNET SETTINGS
set("server.telnet", true)
set("server.telnet.bind_addr", "0.0.0.0")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment