move config to /etc/openwebrx
This commit is contained in:
parent
364d3473a2
commit
5a2e8d8f80
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user