From edc63b83cbf86703d7b467a81810b903dea1ae05 Mon Sep 17 00:00:00 2001 From: schizza Date: Tue, 30 Apr 2024 17:17:54 +0200 Subject: [PATCH] Minor tweaks --- install_iptables.sh | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/install_iptables.sh b/install_iptables.sh index 8cbfb0a..8c7b1a4 100644 --- a/install_iptables.sh +++ b/install_iptables.sh @@ -13,18 +13,16 @@ LINK="https://raw.githubusercontent.com/schizza/SWS-12500-custom-component/main/ FILENAME="iptables_redirect.sh" SCRIPT_DIR="iptables_redirect" - P_HA=true P_ST=true declare -a HA_PATHS=( + "/homeassistant" "$PWD" "$PWD/config" "/config" - "/homeassistant" "$HOME/.homeassistant" "/usr/share/hassio/homeassistant" - "./HA" ) function info() { echo -e $2 "${GREEN_COLOR}$1${NO_COLOR}"; } @@ -208,8 +206,8 @@ exit_status $? "cat" \ echo -n "Setting 'exec.sh' script right privileges ... " chmod +x --quiet "$COMPLETE_PATH/exec.sh" exit_status $? "chmod" \ - "Filed to set +x on exec.sh" \ - "OK." + "Filed to set +x on exec.sh" \ + "OK." echo -n "Creating 'runscript' ... " cat >$COMPLETE_PATH/runscript <<-"EOF" @@ -224,16 +222,16 @@ exit_status $? "cat" \ "OK." echo -n "Modifying configuration.yaml ... " -cat >> $HA_PATH/configuration.yaml <>$HA_PATH/configuration.yaml <