diff --git a/install.sh b/install.sh index a5c5b90..600b401 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,5 @@ #!/usr/bin/env sh -export NEXTDNS_PASSWORD=$(cat pw) - -sshpass -p $NEXTDNS_PASSWORD scp -o "StrictHostKeyChecking no" nextdns_install.sh root@192.168.1.1:/root/nextdns_install.sh -sshpass -p $NEXTDNS_PASSWORD scp -o "StrictHostKeyChecking no" nextdns.conf root@192.168.1.1:/data/nextdns.conf -sshpass -p $NEXTDNS_PASSWORD ssh -o "StrictHostKeyChecking no" root@192.168.1.1 "chmod +x /root/nextdns_install.sh && /root/nextdns_install.sh install" +sshpass -p $NEXTDNS_PASS scp -o "StrictHostKeyChecking no" nextdns_install.sh root@$UNIFI_HOST:/root/nextdns_install.sh +sshpass -p $NEXTDNS_PASS scp -o "StrictHostKeyChecking no" nextdns.conf root@$UNIFI_HOST:/data/nextdns.conf +sshpass -p $NEXTDNS_PASS ssh -o "StrictHostKeyChecking no" root@$UNIFI_HOST "chmod +x /root/nextdns_install.sh && /root/nextdns_install.sh install"