stevejenkins / pihole-cloudsync

Syncs blocklists, blacklists, and whitelists across multiple Pi-holes using a private GitHub repo
MIT License
516 stars 106 forks source link

Suggestion: reboot pi after the pull command #2

Closed nii-nii closed 4 years ago

nii-nii commented 5 years ago

Is it possible to add a script line for rebooting the pi when the pull command is finished?

I always get the API error when the pull request is finished and a reboot fixed it.

If not, just tell me where I should add the line and I will do it myself.

Thank you for taking the time to answer.

SlothCroissant commented 4 years ago

right below echo 'Done!'; on the Pull command, you can add:

$SUDO reboot

Which will reboot your Pi/device.

stevejenkins commented 4 years ago

I think I'll add the command but comment it out, so that those who want this feature can uncomment. Because there's no way to know what else might be running on a Pi-hole host, I hesitate to force a reboot by default.