Add script directory
parent
6b4ce5f49f
commit
4f9ef266e0
|
|
@ -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!"; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue