Skip to content

Commit

Permalink
Merge pull request #23 from Seth-Miller/patch-1
Browse files Browse the repository at this point in the history
Update entrypoint.sh
  • Loading branch information
Sameer Naik committed Jan 12, 2017
2 parents 654a7c2 + c02ca70 commit 2a25901
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ WEBMIN_DATA_DIR=${DATA_DIR}/webmin

create_bind_data_dir() {
mkdir -p ${BIND_DATA_DIR}
chmod -R 0775 ${BIND_DATA_DIR}
chown -R ${BIND_USER}:${BIND_USER} ${BIND_DATA_DIR}

# populate default bind configuration if it does not exist
if [ ! -d ${BIND_DATA_DIR}/etc ]; then
mv /etc/bind ${BIND_DATA_DIR}/etc
fi
rm -rf /etc/bind
ln -sf ${BIND_DATA_DIR}/etc /etc/bind

chmod -R 0775 ${BIND_DATA_DIR}
chown -R ${BIND_USER}:${BIND_USER} ${BIND_DATA_DIR}

if [ ! -d ${BIND_DATA_DIR}/lib ]; then
mkdir -p ${BIND_DATA_DIR}/lib
chown ${BIND_USER}:${BIND_USER} ${BIND_DATA_DIR}/lib
Expand Down

0 comments on commit 2a25901

Please sign in to comment.