mirror of
https://github.com/hassio-addons/addon-home-panel.git
synced 2025-05-05 03:11:24 +00:00
Update and fix paths
This commit is contained in:
parent
e6e8195f1c
commit
98623b4d78
3 changed files with 63 additions and 63 deletions
4
home-panel/Dockerfile
Executable file → Normal file
4
home-panel/Dockerfile
Executable file → Normal file
|
@ -21,10 +21,10 @@ RUN \
|
||||||
yarn=1.22.10-r0 \
|
yarn=1.22.10-r0 \
|
||||||
\
|
\
|
||||||
&& mkdir -p /opt/panel \
|
&& mkdir -p /opt/panel \
|
||||||
&& curl -L -s "https://github.com/timmo001/home-panel/releases/download/v2.11.2/home-panel.tar.gz" \
|
&& curl -L -s "https://github.com/timmo001/home-panel/releases/download/v2.11.4/home-panel.tar.gz" \
|
||||||
| tar zxvf - -C /opt/panel \
|
| tar zxvf - -C /opt/panel \
|
||||||
\
|
\
|
||||||
&& cd /opt/panel/output \
|
&& cd /opt/panel \
|
||||||
&& yarn install \
|
&& yarn install \
|
||||||
\
|
\
|
||||||
&& apk del --no-cache --purge .build-dependencies \
|
&& apk del --no-cache --purge .build-dependencies \
|
||||||
|
|
|
@ -15,8 +15,8 @@ key=$(cat /data/secret.txt)
|
||||||
|
|
||||||
# Set secret to persistent secret file
|
# Set secret to persistent secret file
|
||||||
bashio::log.info "Update secret in config"
|
bashio::log.info "Update secret in config"
|
||||||
sed -i "s#API_AUTH_SECRET#${key}#g" /opt/panel/output/config/default.json
|
sed -i "s#API_AUTH_SECRET#${key}#g" /opt/panel/config/default.json
|
||||||
|
|
||||||
# Set database to /data
|
# Set database to /data
|
||||||
bashio::log.info "Update database path in config"
|
bashio::log.info "Update database path in config"
|
||||||
sed -i "s#../db#/data#g" /opt/panel/output/config/default.json
|
sed -i "s#../db#/data#g" /opt/panel/config/default.json
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
bashio::log.info "Run Home Panel.."
|
bashio::log.info "Run Home Panel.."
|
||||||
|
|
||||||
cd /opt/panel/output \
|
cd /opt/panel \
|
||||||
|| bashio::exit.nok "Could not change into app directory"
|
|| bashio::exit.nok "Could not change into app directory"
|
||||||
|
|
||||||
SUPPRESS_URL="true"
|
SUPPRESS_URL="true"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue