Skip to content

Commit

Permalink
Overwrite Bind9 Default
Browse files Browse the repository at this point in the history
  • Loading branch information
JuxhinDB committed Aug 25, 2019
1 parent 5f467d9 commit b986916
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _config/bind9
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# run resolvconf?
RESOLVCONF=yes

# startup options for the server
OPTIONS="-4 -u bind"
6 changes: 6 additions & 0 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,14 @@ zone \"${DOMAIN_NAME}\" {
touch "/etc/logrotate.d/bind"
cat "${PWD}/_config/logrotate" > "/etc/logrotate.d/bind"

log "DB" "Overwrite Bind9 default file"
cat "${PWD}/_config/bind9" > "/etc/default/bind9"

log "IN" "Reloading logrotate to take effect on new Bind9 logs"
logrotate -d "/etc/logrotate.d/bind"

log "IN" "Restarting Bind9 service"
systemctl restart bind9
}

function main {
Expand Down

0 comments on commit b986916

Please sign in to comment.