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

Run API from CLI.

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