diff options
| author | Matthew <pugmatt@gmail.com> | 2021-12-03 12:08:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-03 12:08:04 -0500 |
| commit | 3c7480a649cf7445a6c205f4095329b7145d736e (patch) | |
| tree | 8858f4ba8d7944f5e142749f277954d8e094a403 | |
| parent | ef47a628fcebcf65520ea4d52769ce10629d6d18 (diff) | |
| download | BedrockConnect-3c7480a649cf7445a6c205f4095329b7145d736e.tar.gz BedrockConnect-3c7480a649cf7445a6c205f4095329b7145d736e.tar.bz2 BedrockConnect-3c7480a649cf7445a6c205f4095329b7145d736e.zip | |
Add debian support to install-bind.sh
Code from https://github.com/Pugmatt/BedrockConnect/issues/244
| -rw-r--r-- | scripts/install-bind.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/install-bind.sh b/scripts/install-bind.sh index 42f9248..9dffb5a 100644 --- a/scripts/install-bind.sh +++ b/scripts/install-bind.sh @@ -90,6 +90,14 @@ if [[ -f /etc/os-release ]]; then NAMED_ZONES="/etc/named.conf" NAMED_DBS="/var/named" SERVICE_NAME="named" + elif [[ "$ID" == "debian" ]]; then + PKG_MGR=apt + PKG_MGR_SYNTAX="install" + PKGS="bind9 dnsutils" + NAMED_OPTIONS="/etc/bind/named.conf.options" + NAMED_ZONES="/etc/bind/named.conf.local" + NAMED_DBS="/var/cache/bind" + SERVICE_NAME="named" else echo "Unsupported OS" exit 2 |
