Update install_bind9.sh
Fixed errors messages that were left over from the install script I copied from.
This commit is contained in:
parent
2455e1dcc4
commit
be0b328916
1 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue