mirror of
https://github.com/casjaysdevdocker/bind
synced 2024-11-22 05:23:09 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/functions/entrypoint.sh
This commit is contained in:
parent
5ff22086b4
commit
4d8a74ad85
@ -214,7 +214,7 @@ __display_user_info() {
|
|||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
__init_config_etc() {
|
__init_config_etc() {
|
||||||
local copy="no"
|
local copy="no"
|
||||||
local name="$(find "/etc/$SERVICE_NAME" -maxdepth 0 | head -n1)"
|
local name="$(find "/etc/$SERVICE_NAME" -maxdepth 0 2>/dev/null | head -n1)"
|
||||||
local etc_dir="${ETC_DIR:-/etc/$name}"
|
local etc_dir="${ETC_DIR:-/etc/$name}"
|
||||||
local conf_dir="${CONF_DIR:-/config/$name}"
|
local conf_dir="${CONF_DIR:-/config/$name}"
|
||||||
__is_dir_empty "$conf_dir" && copy=yes
|
__is_dir_empty "$conf_dir" && copy=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user