Update install_bind9.sh

Fixed errors messages that were left over from the install script I copied from.
This commit is contained in:
Robert Middleswarth 2024-07-19 17:08:20 -04:00 committed by GitHub
parent 2455e1dcc4
commit be0b328916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
@ -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"