From 97a64c01f8dc9991bbbc2c88f333be0a12971077 Mon Sep 17 00:00:00 2001 From: casjay Date: Wed, 19 Oct 2022 18:03:44 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rootfs/usr/local/bin/entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rootfs/usr/local/bin/entrypoint.sh b/rootfs/usr/local/bin/entrypoint.sh index 469798c..452a7d3 100755 --- a/rootfs/usr/local/bin/entrypoint.sh +++ b/rootfs/usr/local/bin/entrypoint.sh @@ -211,7 +211,11 @@ if [ -d "/config" ]; then if [ -n "$create_conf" ]; then create_conf_name="$(basename "$create_conf")" if [ -e "/etc/$create_conf_name" ]; then - cp -Rf "$create_conf" "/etc/$create_conf_name" 2>/dev/null + if [ -d "/etc/$create_conf_name" ]; then + cp -Rf "$create_conf/." "/etc/$create_conf_name/" 2>/dev/null + else + cp -Rf "$create_conf" "/etc/$create_conf_name" 2>/dev/null + fi fi fi done