From fa4ffbf88987355c3c5d6ed98b288ef279e8edfd Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Tue, 7 Feb 2023 00:57:29 +0100 Subject: [PATCH] py3 --- epaper-station/Dockerfile | 1 - epaper-station/config.yaml | 2 +- epaper-station/rootfs/etc/services.d/image-server/run | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/epaper-station/Dockerfile b/epaper-station/Dockerfile index 6d1e42f..46272fb 100644 --- a/epaper-station/Dockerfile +++ b/epaper-station/Dockerfile @@ -13,7 +13,6 @@ RUN mkdir /public && cp /app/online_viewer.html /public/index.html && cp /app/no RUN sed -i 's/`ws:\/\/localhost:8000\/ws`/window.location.href.replace("http", "ws") + "\/ws\/"/g' /public/index.html ADD rootfs / -RUN adduser -S www-data -G www-data # Corrects permissions for s6 v3 RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ diff --git a/epaper-station/config.yaml b/epaper-station/config.yaml index 1f9c24e..28b5494 100644 --- a/epaper-station/config.yaml +++ b/epaper-station/config.yaml @@ -1,6 +1,6 @@ --- name: EPaper Station -version: 1.0.0.32 +version: 1.0.0.33 #image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch} slug: epaper-station description: Publish Pictures to EPaper pricetags diff --git a/epaper-station/rootfs/etc/services.d/image-server/run b/epaper-station/rootfs/etc/services.d/image-server/run index 177ac51..7e728f7 100644 --- a/epaper-station/rootfs/etc/services.d/image-server/run +++ b/epaper-station/rootfs/etc/services.d/image-server/run @@ -2,4 +2,4 @@ IMG_DIR="$(bashio::config 'image_path')" bashio::log.info "Starting image server..." cd $IMG_DIR -python -m SimpleHTTPServer 8080 +python -m http.server 8080