🗃️ Committing everything that changed 🗃️
Some checks failed
ubuntu-18-04 / ubuntu-18-04 (push) Failing after 25s
ubuntu-20-04 / ubuntu-20-04 (push) Failing after 23s
ubuntu-24-04 / ubuntu-24-04 (push) Failing after 20s
ubuntu-24-10 / ubuntu-24-10 (push) Failing after 24s
ubuntu / release-ubuntu (push) Failing after 23s
ubuntu-22-04 / ubuntu-22-04 (push) Failing after 11m33s

rootfs/usr/local/etc/docker/functions/entrypoint.sh
This commit is contained in:
casjay
2025-09-20 05:18:38 -04:00
parent 12994d944e
commit c54efdf2bd

View File

@@ -142,6 +142,7 @@ __banner() {
local content_width=$((total_width - 14)) # Account for "# - - - " and " - - - #" local content_width=$((total_width - 14)) # Account for "# - - - " and " - - - #"
printf '# - - - %-*s - - - #\n' "$content_width" "$message" printf '# - - - %-*s - - - #\n' "$content_width" "$message"
} }
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
__service_banner() { __service_banner() {
local icon="${1:-🔧}" local icon="${1:-🔧}"
local message="${2:-Processing}" local message="${2:-Processing}"
@@ -151,9 +152,9 @@ __service_banner() {
local content_width=$((total_width - 14)) # Account for "# - - - " and " - - - #" local content_width=$((total_width - 14)) # Account for "# - - - " and " - - - #"
local icon_width=2 # Most emojis are 2 chars wide 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 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" 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_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 ''; } __find_php_ini() { find -L '/etc' -maxdepth 4 -name 'php.ini' 2>/dev/null | head -n1 | sed 's|/php.ini||g' | grep '.' || echo ''; }
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -