Skip to content

Commit

Permalink
Update install_bind9.sh
Browse files Browse the repository at this point in the history
Fixed errors messages that were left over from the install script I copied from.
  • Loading branch information
rmiddle authored Jul 19, 2024
1 parent 2455e1d commit be0b328
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/install_bind9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ check_internet

echo "Creating directories..."
sudo mkdir -p /portainer/Files/AppData/Config/bind9/ || error "Failed to create config directory!"
sudo mkdir -p /portainer/Files/AppData/Config/bind9/cache/ || error "Failed to create data directory for Prometheus!"
sudo mkdir -p /portainer/Files/AppData/Config/bind9/bind/ || error "Failed to create data directory for Grafana!"
sudo mkdir -p /portainer/Files/AppData/Config/bind9/cache/ || error "Failed to create data directory for Cache!"
sudo mkdir -p /portainer/Files/AppData/Config/bind9/bind/ || error "Failed to create data directory for Bind"
echo "Downloading Prometheus config files if they don't exist"
if [ -d /portainer/Files/AppData/Config/bind9/named.conf ];
then
Expand All @@ -30,7 +30,7 @@ fi

if [ ! -f /portainer/Files/AppData/Config/bind9/named.conf ];
then
sudo wget -O /portainer/Files/AppData/Config/bind9/named.conf https://raw.githubusercontent.com/pi-hosted/pi-hosted/master/configs/bind9/named.conf || error "Failed to download prometheus.yml file!"
sudo wget -O /portainer/Files/AppData/Config/bind9/named.conf https://raw.githubusercontent.com/pi-hosted/pi-hosted/master/configs/bind9/named.conf || error "Failed to download named.conf file!"
fi

echo "Done You are ready to goto next step in the install document"

0 comments on commit be0b328

Please sign in to comment.