Modify services finish script

This commit is contained in:
Fredrik Baberg 2022-10-02 23:52:22 +02:00
parent 1a5b481dc8
commit a8f4d2ebfe
6 changed files with 9 additions and 10 deletions

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint" name: "3DPrinter-OctoPrint"
version: "2022.9.022" version: "2022.9.023"
slug: "3dprinter-octoprint" slug: "3dprinter-octoprint"
description: "OctoPrint as an addon, no additional bells and whistles." description: "OctoPrint as an addon, no additional bells and whistles."
url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint" url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint"

View File

@ -4,7 +4,7 @@
# Configures proxy # Configures proxy
# ============================================================================== # ==============================================================================
mkdir -p /etc/caddy/sites-enabled mkdir -p /etc/caddy/configs
# Generate Ingress configuration # Generate Ingress configuration
bashio::var.json \ bashio::var.json \

View File

@ -3,7 +3,8 @@
# Add-on: 3dprinter-octoprint # Add-on: 3dprinter-octoprint
# Take down the S6 supervision tree when OctoPrint fails # Take down the S6 supervision tree when OctoPrint fails
# ============================================================================== # ==============================================================================
if -n { s6-test $# -ne 0 }
if -n { s6-test ${1} -eq 256 }
s6-svscanctl -t /var/run/s6/services # if -n { s6-test $# -ne 0 }
# if -n { s6-test ${1} -eq 256 }
#
# s6-svscanctl -t /var/run/s6/services

View File

@ -3,5 +3,3 @@
# Add-on: 3dprinter-octoprint # Add-on: 3dprinter-octoprint
# Stop reverse proxy # Stop reverse proxy
# ============================================================================== # ==============================================================================
caddy stop

View File

@ -9,4 +9,4 @@ bashio::net.wait_for 5000
bashio::log.info "Starting proxy..." bashio::log.info "Starting proxy..."
caddy start --config /etc/caddy/Caddyfile --watch exec caddy run --config /etc/caddy/Caddyfile

View File

@ -1,9 +1,9 @@
:0899 { :8099 {
@ingress { @ingress {
remote_ip 172.30.32.2 remote_ip 172.30.32.2
} }
handle { handle {
reverse_proxy @ingress 127.0.0.1:80 { reverse_proxy @ingress 127.0.0.1:5000 {
header_up X-Script-Name {{ .ingress_entry }} header_up X-Script-Name {{ .ingress_entry }}
} }
} }