diff --git a/install_iptables.sh b/install_iptables.sh index 6212567..8c2bbfe 100644 --- a/install_iptables.sh +++ b/install_iptables.sh @@ -196,7 +196,10 @@ echo -n "Creating 'exec.sh' script ... " cat >$COMPLETE_PATH/exec.sh <<-EOF #!/bin/bash -cat ./iptables_redirect/runscript | ssh -i ./iptables_redirect/ssl/ipt_dsa -o StrictHostKeyChecking=no -p $SSH_PORT -l $SSH_USER $HA_IP /bin/zsh +RUN=$(find /homeassistant -name "iptables_redirect.sh" | sed -n 1p) +KEY=$(find /homeassistatnt -name "ipt_dsa" | sed -n 1p) + +cat \$RUN | ssh -i \$KEY -o StrictHostKeyChecking=no -p $SSH_PORT -l $SSH_USER $HA_IP /bin/zsh EOF exit_status $? "cat" \ @@ -225,7 +228,7 @@ echo -n "Modifying configuration.yaml ... " cat >>$HA_PATH/configuration.yaml <