From 2b94a8476dbd0f37fcaf231738a3bde4e6f17739 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Tue, 7 Feb 2023 00:37:37 +0100 Subject: [PATCH] wwwdata --- epaper-station/config.yaml | 2 +- epaper-station/rootfs/etc/nginx/nginx.conf | 2 +- epaper-station/rootfs/etc/services.d/nginx/run | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/epaper-station/config.yaml b/epaper-station/config.yaml index 3c5008a..5573e39 100644 --- a/epaper-station/config.yaml +++ b/epaper-station/config.yaml @@ -1,6 +1,6 @@ --- name: EPaper Station -version: 1.0.0.26 +version: 1.0.0.27 #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/nginx/nginx.conf b/epaper-station/rootfs/etc/nginx/nginx.conf index 21f0828..b0bcc69 100644 --- a/epaper-station/rootfs/etc/nginx/nginx.conf +++ b/epaper-station/rootfs/etc/nginx/nginx.conf @@ -1,6 +1,6 @@ daemon off; error_log /dev/stdout info; -user root; +user www-data; events { } diff --git a/epaper-station/rootfs/etc/services.d/nginx/run b/epaper-station/rootfs/etc/services.d/nginx/run index f595224..b8bd5e2 100644 --- a/epaper-station/rootfs/etc/services.d/nginx/run +++ b/epaper-station/rootfs/etc/services.d/nginx/run @@ -1,7 +1,7 @@ #!/usr/bin/with-contenv bashio +s6-setuidgid www-data IMG_DIR="$(bashio::config 'image_path')" bashio::log.info "Starting nginx..." sed -i "s~IMG_DIR~$IMG_DIR~g" /etc/nginx/nginx.conf -chmod +x $IMG_DIR nginx -c /etc/nginx/nginx.conf bashio::log.info "nginx running."