🗃️ Committing everything that changed 🗃️
Some checks failed
alpine-3-14 / alpine-3-14 (push) Failing after 24s
alpine-3-16 / alpine-3-16 (push) Failing after 19s
alpine-3-17 / alpine-3-17 (push) Failing after 26s
alpine-3-19 / alpine-3-19 (push) Failing after 28s
alpine-3-21 / alpine-3-20 (push) Failing after 23s
alpine-edge / alpine-edge (push) Failing after 30s
alpine / release-alpine (push) Failing after 31s
alpine-3-22 / alpine-3-20 (push) Failing after 12m38s
alpine-3-20 / alpine-3-20 (push) Failing after 13m3s
alpine-3-18 / alpine-3-18 (push) Failing after 13m27s
alpine-3-15 / alpine-3-15 (push) Failing after 14m10s

rootfs/usr/local/etc/docker/functions/entrypoint.sh
This commit is contained in:
casjay
2025-09-20 05:18:34 -04:00
parent 5726cdcb7d
commit 8e13168cc7

View File

@@ -136,24 +136,25 @@ __trim() {
printf '%s' "$var" | sed 's|;||g' | grep -v '^$'
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
__banner() {
__banner() {
local message="$*"
local total_width=80
local content_width=$((total_width - 14)) # Account for "# - - - " and " - - - #"
local content_width=$((total_width - 14)) # Account for "# - - - " and " - - - #"
printf '# - - - %-*s - - - #\n' "$content_width" "$message"
}
__service_banner() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
__service_banner() {
local icon="${1:-🔧}"
local message="${2:-Processing}"
local service="${3:-service}"
local full_message="$message $service"
local total_width=80
local content_width=$((total_width - 14)) # Account for "# - - - " and " - - - #"
local icon_width=2 # Most emojis are 2 chars wide
local text_width=$((content_width - icon_width * 2 - 2)) # Account for both icons and spaces
local content_width=$((total_width - 14)) # Account for "# - - - " and " - - - #"
local icon_width=2 # Most emojis are 2 chars wide
local text_width=$((content_width - icon_width * 2 - 2)) # Account for both icons and spaces
printf '# - - - %s %-*s %s - - - #\n' "$icon" "$text_width" "$full_message" "$icon"
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
__find_php_bin() { find -L '/usr'/*bin -maxdepth 4 -name 'php-fpm*' 2>/dev/null | head -n1 | grep '.' || echo ''; }
__find_php_ini() { find -L '/etc' -maxdepth 4 -name 'php.ini' 2>/dev/null | head -n1 | sed 's|/php.ini||g' | grep '.' || echo ''; }
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -