From 1012a52afacf543e066cf1f37075154ef67cfb20 Mon Sep 17 00:00:00 2001 From: Fredrik Baberg Date: Mon, 11 Jul 2022 23:02:37 +0200 Subject: [PATCH] Make scripts executable --- 3dprinter-octoprint/Dockerfile | 1 + 3dprinter-octoprint/config.yaml | 2 +- 3dprinter-octoprint/rootfs/scripts/system_restart.sh | 2 ++ 3dprinter-octoprint/rootfs/scripts/system_shutdown.sh | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/3dprinter-octoprint/Dockerfile b/3dprinter-octoprint/Dockerfile index 563de9c..628565d 100644 --- a/3dprinter-octoprint/Dockerfile +++ b/3dprinter-octoprint/Dockerfile @@ -24,3 +24,4 @@ RUN apt update && \ COPY rootfs / RUN chmod +x /etc/cont-init.d/*.sh RUN chmod +x /etc/services.d/*/* +RUN chmod +x /scripts/*.sh diff --git a/3dprinter-octoprint/config.yaml b/3dprinter-octoprint/config.yaml index 8a6ce24..af31209 100644 --- a/3dprinter-octoprint/config.yaml +++ b/3dprinter-octoprint/config.yaml @@ -1,5 +1,5 @@ name: "3DPrinter-OctoPrint" -version: "2022.7.019" +version: "2022.7.020" slug: "3dprinter-octoprint" description: "OctoPrint as an addon, no additional bells and whistles." url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint" diff --git a/3dprinter-octoprint/rootfs/scripts/system_restart.sh b/3dprinter-octoprint/rootfs/scripts/system_restart.sh index 3d1c575..a224d4d 100644 --- a/3dprinter-octoprint/rootfs/scripts/system_restart.sh +++ b/3dprinter-octoprint/rootfs/scripts/system_restart.sh @@ -1,3 +1,5 @@ #!/usr/bin/with-contenv bashio +bashio::log.warning "Restart addon." + bashio::addon.restart diff --git a/3dprinter-octoprint/rootfs/scripts/system_shutdown.sh b/3dprinter-octoprint/rootfs/scripts/system_shutdown.sh index 064679e..59972e3 100644 --- a/3dprinter-octoprint/rootfs/scripts/system_shutdown.sh +++ b/3dprinter-octoprint/rootfs/scripts/system_shutdown.sh @@ -1,3 +1,5 @@ #!/usr/bin/with-contenv bashio +bashio::log.warning "Shutdown addon." + bashio::addon.stop