Add script directory

pull/18/head
schizza 2024-04-30 14:33:43 +02:00
parent 6b4ce5f49f
commit 4f9ef266e0
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@ ST_PORT=80
LINK="https://raw.githubusercontent.com/schizza/SWS-12500-custom-component/main/iptables_redirect.sh" LINK="https://raw.githubusercontent.com/schizza/SWS-12500-custom-component/main/iptables_redirect.sh"
FILENAME="iptables_redirect.sh" FILENAME="iptables_redirect.sh"
SCRIPT_DIR="iptables_redirect/"
P_HA=true P_HA=true
P_ST=true P_ST=true
@ -107,6 +108,9 @@ for _PATH in "${HA_PATHS[@]}"; do
fi fi
done done
COMPLETE_PATH="$HA_PATH/$SCRIPT_DIR"
FILENAME="$COMPLETE_PATH$FILENAME"
rm -f "$FILENAME" rm -f "$FILENAME"
[ -z $HA_PATH ] && { error "Home Assistant not found!"; } [ -z $HA_PATH ] && { error "Home Assistant not found!"; }