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