Last active
July 18, 2019 15:53
-
-
Save requeijaum/dc650ad9ca0f54c7a3dfb9f82c5d8adb to your computer and use it in GitHub Desktop.
Fix my pihole install on Odroid C2 with Ubuntu 16.04 LTS. BIND9 must be kidding with me, since pihole uses dns-masq (and we need to install a specific version of it). I have this script setup on my crontab running every 30 minutes. That's important because my little Odroid is the DNS Cache for my home LAN.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
service bind9 stop | |
pgrep pihole-FTL | |
if [ $? -gt 0 ] | |
then | |
pihole-FTL | |
else | |
echo "pihole-FTL's process is already running!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment