From 4f9ef266e0e3fae58c390e4ae7d5bbd09ee4f24a Mon Sep 17 00:00:00 2001 From: schizza Date: Tue, 30 Apr 2024 14:33:43 +0200 Subject: [PATCH] Add script directory --- install_iptables.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install_iptables.sh b/install_iptables.sh index 2ba5acd..a168108 100644 --- a/install_iptables.sh +++ b/install_iptables.sh @@ -11,6 +11,7 @@ ST_PORT=80 LINK="https://raw.githubusercontent.com/schizza/SWS-12500-custom-component/main/iptables_redirect.sh" FILENAME="iptables_redirect.sh" +SCRIPT_DIR="iptables_redirect/" P_HA=true P_ST=true @@ -107,6 +108,9 @@ for _PATH in "${HA_PATHS[@]}"; do fi done +COMPLETE_PATH="$HA_PATH/$SCRIPT_DIR" +FILENAME="$COMPLETE_PATH$FILENAME" + rm -f "$FILENAME" [ -z $HA_PATH ] && { error "Home Assistant not found!"; }