6 lines
395 B
Bash
Executable File
6 lines
395 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
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"
|