openwebrx-clone/docker/scripts/run.sh

24 lines
321 B
Bash
Raw Normal View History

2019-01-13 21:04:29 +00:00
#!/bin/bash
set -euo pipefail
if [[ ! -f /config/config_webrx.py ]] ; then
cp config_webrx.py /config
fi
rm config_webrx.py
ln -s /config/config_webrx.py .
_term() {
echo "Caught signal!"
kill -TERM "$child" 2>/dev/null
}
trap _term SIGTERM SIGINT
2019-06-20 12:46:04 +00:00
python3 openwebrx.py $@ &
2019-01-13 21:04:29 +00:00
child=$!
wait "$child"