move config to /etc/openwebrx

This commit is contained in:
Jakob Ketterl 2019-12-14 19:05:22 +01:00
parent 364d3473a2
commit 5a2e8d8f80
1 changed files with 3 additions and 7 deletions

View File

@ -1,14 +1,10 @@
#!/bin/bash
set -euo pipefail
if [[ ! -f /config/config_webrx.py ]] ; then
cp config_webrx.py /config
if [[ ! -f /etc/openwebrx/config_webrx.py ]] ; then
mkdir -p /etc/openwebrx/
cp config_webrx.py /etc/openwebrx/
fi
rm config_webrx.py
ln -s /config/config_webrx.py .
_term() {
echo "Caught signal!"
kill -TERM "$child" 2>/dev/null