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

Run API from CLI.

parent caeb9056
No related branches found
No related tags found
No related merge requests found
#/usr/bin/bash
mode="engine"
debug"--debug"
debug="--debug"
#debug="--debug --verbose"
if [ -n "$1" ]; then
if [[ $1 =~ ^(engine|lqs)$ ]]; then
if [[ $1 =~ ^(engine|lqs|api)$ ]]; then
mode=$1
fi
fi
......@@ -18,4 +18,8 @@ fi
if [ $mode == "lqs" ]; then
(cd modules/liquidsoap/ && /usr/bin/liquidsoap $debug ./engine.liq)
fi
if [ $mode == "api" ]; then
/usr/bin/python3.7 api.py
fi
\ No newline at end of file
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