From 51822165d7c414c4af572620be0983118d89bdc4 Mon Sep 17 00:00:00 2001 From: Ray Slakinski <19767+rays@users.noreply.github.com> Date: Mon, 2 Dec 2024 16:10:33 -0500 Subject: [PATCH] going to use docker envvars instead of a file --- install.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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"