🔧 Restructure entrypoint scripts and update configs 🔧

- Removed legacy entrypoint.sh from rootfs/usr/local/bin and functions directory
- Added new healthcheck script to rootfs/usr/local/bin
- Updated copy and symlink helper scripts in rootfs/usr/local/bin
- Refreshed environment templates and example configs for services
- Updated Dockerfile and .env.scripts to align with new layout

Dockerfile
.env.scripts
rootfs/usr/local/bin/copy
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/bin/healthcheck
rootfs/usr/local/bin/symlink
rootfs/usr/local/etc/docker/functions/entrypoint.sh
rootfs/usr/local/share/template-files/config/env/default.sample
rootfs/usr/local/share/template-files/config/env/examples/addresses.sh
rootfs/usr/local/share/template-files/config/env/examples/healthcheck.sh
rootfs/usr/local/share/template-files/config/env/examples/mariadb.sh
rootfs/usr/local/share/template-files/config/env/examples/php.sh
rootfs/usr/local/share/template-files/config/env/examples/postgres.sh
rootfs/usr/local/share/template-files/config/env/examples/webservers.sh
rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh
This commit is contained in:
2026-05-05 19:35:17 -04:00
parent 63f6e58593
commit 31d05220d5
15 changed files with 313 additions and 2544 deletions
+8 -5
View File
@@ -38,15 +38,18 @@ __copy() {
__printf_color "Copying $1/* to $2/"
__unlink "$2"
mkdir -p "$2"
cp -Rf "$1"/. "$2"/
exitCode=$?
elif [ -f "$1" ]; then
for f in "$1"/* "$1"/.[!.]* "$1"/..?*; do
[ -e "$f" ] || [ -L "$f" ] || continue
base=$(basename -- "$f")
__copy "$f" "$2/$base" || exitCode=$?
done
elif [ -f "$1" ] || [ -L "$1" ]; then
__printf_color "Copying $1 to $2"
__unlink "$2"
cp -Rf "$1" "$2"
exitCode=$?
fi
return $exitCode
fi
return $exitCode
}
# - - - - - - - - - - - - - - - - - - - - - - - - -
# Define variables