Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
syncing_pihole_bash [2022/01/22 00:29]
warmachine
syncing_pihole_bash [2022/01/22 00:30] (current)
warmachine
Line 12: Line 12:
 #!/bin/bash #!/bin/bash
 cat banner.txt cat banner.txt
-sshpass -f '/home/warmachine/dnsreppw/pw' scp /etc/dnsmasq.d/05-custom.conf warmachine@192.168.1.30:/etc/dnsmasq.d/05-custom.conf +sshpass -f '/home/yourusername/dnsreppw/pw' scp /etc/dnsmasq.d/05-custom.conf yourusername@192.168.1.30:/etc/dnsmasq.d/05-custom.conf 
-sshpass -f '/home/warmachine/dnsreppw/pw' scp /etc/dnsmasq.d/05-pihole-custom-cname.conf warmachine@192.168.1.30:/etc/dnsmasq.d/05-pihole-custom-cname.conf +sshpass -f '/home/yourusername/dnsreppw/pw' scp /etc/dnsmasq.d/05-pihole-custom-cname.conf yourusername@192.168.1.30:/etc/dnsmasq.d/05-pihole-custom-cname.conf 
-sshpass -f '/home/warmachine/dnsreppw/pw' ssh warmachine@192.168.1.30 'sudo systemctl restart pihole-FTL.service'+sshpass -f '/home/yourusername/dnsreppw/pw' ssh yourusername@192.168.1.30 'sudo systemctl restart pihole-FTL.service'
 echo "." echo "."
 echo "." echo "."
Last modified: le 2022/01/22 00:29