move config to /etc/openwebrx

This commit is contained in:
Jakob Ketterl 2019-12-14 19:05:22 +01:00
parent 364d3473a2
commit 5a2e8d8f80

View File

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