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