Skip to content
Snippets Groups Projects
Commit d20ee42d authored by David Trattnig's avatar David Trattnig
Browse files

Allow liquidsoap run as root inside Docker. #17

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