homeassistant-addons/epaper-station/rootfs/etc/services.d/nginx/run

7 lines
226 B
Text
Raw Normal View History

2023-02-06 22:27:33 +00:00
#!/usr/bin/with-contenv bashio
2023-02-06 23:08:37 +00:00
IMG_DIR="$(bashio::config 'image_path')"
2023-02-06 22:23:51 +00:00
bashio::log.info "Starting nginx..."
2023-02-06 23:25:36 +00:00
sed -i "s~IMG_DIR~$IMG_DIR~g" /etc/nginx/nginx.conf
2023-02-06 23:11:29 +00:00
nginx -c /etc/nginx/nginx.conf
2023-02-06 22:23:51 +00:00
bashio::log.info "nginx running."