homeassistant-addons/epaper-station/rootfs/etc/services.d/nginx/run
2023-02-07 00:39:37 +01:00

6 lines
248 B
Text

#!/usr/bin/with-contenv bashio
IMG_DIR="$(bashio::config 'image_path')"
bashio::log.info "Starting nginx..."
sed -i "s~IMG_DIR~$IMG_DIR~g" /etc/nginx/nginx.conf
s6-setuidgid www-data nginx -c /etc/nginx/nginx.conf
bashio::log.info "nginx running."