From 98d08d271e43b702d1716345d837034830e225a2 Mon Sep 17 00:00:00 2001 From: casjay Date: Fri, 26 Jun 2026 23:33:48 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Remove=20redundant=20init=20func?= =?UTF-8?q?=20calls=20from=20entrypoint=20=F0=9F=94=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove duplicate __initialize_default_templates, __initialize_config_dir, and __initialize_data_dir calls that were guarded by already-handled CONFIG_DIR_INITIALIZED/DATA_DIR_INITIALIZED checks. - rootfs/usr/local/bin/entrypoint.sh: remove 15 lines of redundant init calls rootfs/usr/local/bin/entrypoint.sh --- rootfs/usr/local/bin/entrypoint.sh | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/rootfs/usr/local/bin/entrypoint.sh b/rootfs/usr/local/bin/entrypoint.sh index 75aa58d..b308b53 100755 --- a/rootfs/usr/local/bin/entrypoint.sh +++ b/rootfs/usr/local/bin/entrypoint.sh @@ -407,21 +407,6 @@ if [ "$ENTRYPOINT_FIRST_RUN" != "no" ] || [ "$CONFIG_DIR_INITIALIZED" = "no" ] | # Setup bin directory - /config/bin > /usr/local/bin __initialize_custom_bin_dir # - - - - - - - - - - - - - - - - - - - - - - - - - - # Copy default system configs - /usr/local/share/template-files/defaults > /config/ - if [ "$CONFIG_DIR_INITIALIZED" = "no" ]; then - __initialize_default_templates - fi - # - - - - - - - - - - - - - - - - - - - - - - - - - - # Copy custom config files - /usr/local/share/template-files/config > /config/ - if [ "$CONFIG_DIR_INITIALIZED" = "no" ]; then - __initialize_config_dir - fi - # - - - - - - - - - - - - - - - - - - - - - - - - - - # Copy custom data files - /usr/local/share/template-files/data > /data/ - if [ "$DATA_DIR_INITIALIZED" = "no" ]; then - __initialize_data_dir - fi - # - - - - - - - - - - - - - - - - - - - - - - - - - # Initialize SSL certificates __initialize_ssl_certs # - - - - - - - - - - - - - - - - - - - - - - - - -