From 3183ea93a07008be788cd522a6f0a4f749f423db Mon Sep 17 00:00:00 2001 From: Aidan Timson Date: Fri, 19 Feb 2021 22:26:47 +0000 Subject: [PATCH] Update and fix paths (#90) * Update and fix paths * Restore LF * Restore perms --- home-panel/Dockerfile | 4 ++-- home-panel/rootfs/etc/cont-init.d/secrets.sh | 4 ++-- home-panel/rootfs/etc/services.d/home-panel/run | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/home-panel/Dockerfile b/home-panel/Dockerfile index 3296580..8ab3d0e 100755 --- a/home-panel/Dockerfile +++ b/home-panel/Dockerfile @@ -21,10 +21,10 @@ RUN \ yarn=1.22.10-r0 \ \ && 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 \ \ - && cd /opt/panel/output \ + && cd /opt/panel \ && yarn install \ \ && apk del --no-cache --purge .build-dependencies \ diff --git a/home-panel/rootfs/etc/cont-init.d/secrets.sh b/home-panel/rootfs/etc/cont-init.d/secrets.sh index 62f6207..89c9707 100644 --- a/home-panel/rootfs/etc/cont-init.d/secrets.sh +++ b/home-panel/rootfs/etc/cont-init.d/secrets.sh @@ -15,8 +15,8 @@ key=$(cat /data/secret.txt) # Set secret to persistent secret file 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 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 diff --git a/home-panel/rootfs/etc/services.d/home-panel/run b/home-panel/rootfs/etc/services.d/home-panel/run index 5c9d17a..269699e 100644 --- a/home-panel/rootfs/etc/services.d/home-panel/run +++ b/home-panel/rootfs/etc/services.d/home-panel/run @@ -5,7 +5,7 @@ # ============================================================================== bashio::log.info "Run Home Panel.." -cd /opt/panel/output \ +cd /opt/panel \ || bashio::exit.nok "Could not change into app directory" SUPPRESS_URL="true"