going to use docker envvars instead of a file

This commit is contained in:
Ray Slakinski 2024-12-02 16:10:33 -05:00
parent 10a0d7ad00
commit 51822165d7
No known key found for this signature in database
GPG Key ID: D6E793433D81EEE4

View File

@ -1,7 +1,5 @@
#!/usr/bin/env sh #!/usr/bin/env sh
export NEXTDNS_PASSWORD=$(cat pw) 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_PASSWORD scp -o "StrictHostKeyChecking no" nextdns_install.sh root@192.168.1.1:/root/nextdns_install.sh sshpass -p $NEXTDNS_PASS ssh -o "StrictHostKeyChecking no" root@$UNIFI_HOST "chmod +x /root/nextdns_install.sh && /root/nextdns_install.sh install"
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"