mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
fix of a race condition (#1789)
This commit is contained in:
parent
1010dad479
commit
c6f434acaf
@ -322,7 +322,9 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
sudo -u sphinxrelay cp /home/sphinxrelay/sphinx-relay/config/config.json /home/sphinxrelay/sphinx-relay/config/config.json.bak
|
||||
sudo cat /home/sphinxrelay/sphinx-relay/config/config.json | \
|
||||
jq ".production.storage = \"/mnt/hdd/app-data/sphinxrelay/sphinx.db\"" | \
|
||||
sudo -u sphinxrelay tee /home/sphinxrelay/sphinx-relay/config/config.json
|
||||
sudo -u sphinxrelay tee /home/admin/config.json.tmp
|
||||
sudo mv /home/admin/config.json.tmp /home/sphinxrelay/sphinx-relay/config/config.json
|
||||
sudo chown sphinxrelay:sphinxrelay /home/sphinxrelay/sphinx-relay/config/config.json
|
||||
|
||||
# general app config
|
||||
sudo -u sphinxrelay cp /home/sphinxrelay/sphinx-relay/config/app.json /home/sphinxrelay/sphinx-relay/config/app.json.bak
|
||||
@ -473,4 +475,4 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
||||
fi
|
||||
|
||||
echo "FAIL - Unknown Parameter $1"
|
||||
exit 1
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user