Skip to content

Commit

Permalink
Fix named.service call within webmin
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Apr 1, 2024
1 parent 6bead17 commit a19449f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
all: build

build:
@docker build --tag=sameersbn/bind .
@docker build --tag=crispychrispe/bind9-webmin2 .
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '2'
services:
bind:
restart: always
image: sameersbn/bind:9.16.1-20200524
image: crispychrispe/bind9-webmin2:latest
ports:
- "53:53/udp"
- "53:53/tcp"
Expand Down
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ create_bind_cache_dir() {
chown root:${BIND_USER} /var/cache/bind
}

fix_bind_servicename() {
sed -i 's/bind9.service/named.service/g' /etc/webmin/bind8/config
}

first_init() {
if [ ! -f /data/.initialized ]; then
set_webmin_redirect_port
Expand Down Expand Up @@ -127,6 +131,7 @@ if [[ -z ${1} ]]; then
create_webmin_data_dir
first_init
set_root_passwd
fix_bind_servicename
echo "Starting webmin..."
systemctl start webmin
fi
Expand Down

0 comments on commit a19449f

Please sign in to comment.