File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed
Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,16 @@ COPY includes/ /
1616
1717RUN \
1818 chown bind:bind -R /etc/bind; \
19- chmod 5771 /etc/bind;
19+ chmod 771 /etc/bind; \
20+ chmod +x /entrypoint.sh;
2021
2122
2223VOLUME /etc/bind
2324
2425VOLUME /var/bind
2526
2627VOLUME /var/log
28+
29+
30+ ENTRYPOINT [ "/entrypoint.sh" ]
31+
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ set -e
4+
5+ if [ " $1 " == " " ]; then
6+
7+
8+ chmod 764 -R /etc/bind;
9+ chown bind:bind -R /etc/bind;
10+ echo " ************************** /etc/bind **************************" ;
11+ ls -l /etc/bind;
12+
13+ chmod 764 -R /var/bind;
14+ chown bind:bind -R /var/bind;
15+ echo " ************************** /var/bind **************************" ;
16+ ls -l /var/bind;
17+
18+ chmod 764 -R /var/log;
19+ chown bind:bind -R /var/log;
20+ echo " ************************** /var **************************" ;
21+ ls -l /var;
22+
23+
24+ echo " ************************** **************************" ;
25+
26+ /usr/sbin/named -u bind -f -c /etc/bind/named.conf -L /var/log/default.log
27+
28+
29+ else
30+
31+ exec " $@ "
32+
33+ fi
You can’t perform that action at this time.
0 commit comments