Skip to content
Snippets Groups Projects
Commit ea861e15 authored by Bob Mottram's avatar Bob Mottram
Browse files

Icecast logging

parent 6f8bfddf
No related branches found
No related tags found
No related merge requests found
......@@ -275,11 +275,17 @@ function change_password_icecast {
}
function logging_on_icecast {
if [ ! -f /etc/icecast2/icecast.xml ]; then
return
fi
sed -i 's|<loglevel>.*|<loglevel>4</loglevel>|g' /etc/icecast2/icecast.xml
sed -i "s|set(\"log.file.path\".*|set(\"log.file.path\", \"$liquidsoap_log\")|g" "$liquidsoap_script"
}
function logging_off_icecast {
if [ ! -f /etc/icecast2/icecast.xml ]; then
return
fi
sed -i 's|<loglevel>.*|<loglevel>1</loglevel>|g' /etc/icecast2/icecast.xml
sed -i 's|set("log.file.path".*|set("log.file.path", "/dev/null")|g' "$liquidsoap_script"
}
......
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