openwebrx-clone/docker/scripts/run.sh
2019-12-14 19:05:22 +01:00

20 lines
309 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
if [[ ! -f /etc/openwebrx/config_webrx.py ]] ; then
mkdir -p /etc/openwebrx/
cp config_webrx.py /etc/openwebrx/
fi
_term() {
echo "Caught signal!"
kill -TERM "$child" 2>/dev/null
}
trap _term SIGTERM SIGINT
python3 openwebrx.py $@ &
child=$!
wait "$child"