mirror of
https://github.com/hassio-addons/addon-home-panel.git
synced 2025-05-05 11:21:31 +00:00
🚑 Fix database path
This commit is contained in:
parent
7545ad9067
commit
69944adf85
1 changed files with 5 additions and 0 deletions
|
@ -7,3 +7,8 @@ if [ "$(grep -i 'API_AUTH_SECRET' /opt/panel/config/default.json)" = 0 ]; then
|
||||||
bashio::log.info "Update auth secret.."
|
bashio::log.info "Update auth secret.."
|
||||||
sed -i -e "s/API_AUTH_SECRET/$(openssl rand -base64 32)/g" /opt/panel/config/default.json
|
sed -i -e "s/API_AUTH_SECRET/$(openssl rand -base64 32)/g" /opt/panel/config/default.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$(grep -i '../db' /opt/panel/config/default.json)" = 0 ]; then
|
||||||
|
# Force database to use /data
|
||||||
|
sed -i -e "s/../db//data/g" /opt/panel/config/default.json
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue