mirror of
https://github.com/dockersrc/almalinux
synced 2026-06-30 11:45:59 -04:00
🐛 Fix duplicate 2>/dev/null in entrypoint.sh /etc/hosts line 🐛
Build and Push / build (push) Failing after 13m32s
Build and Push 9 / build (push) Failing after 13m44s
Build and Push 9-dev / build (push) Failing after 13m54s
Build and Push 8 / build (push) Failing after 13m55s
Build and Push 8-dev / build (push) Failing after 14m14s
Build and Push 10 / build (push) Failing after 14m25s
Build and Push 10-dev / build (push) Failing after 14m33s
Build and Push / build (push) Failing after 13m32s
Build and Push 9 / build (push) Failing after 13m44s
Build and Push 9-dev / build (push) Failing after 13m54s
Build and Push 8 / build (push) Failing after 13m55s
Build and Push 8-dev / build (push) Failing after 14m14s
Build and Push 10 / build (push) Failing after 14m25s
Build and Push 10-dev / build (push) Failing after 14m33s
The grep -vF line that appends /usr/local/etc/hosts entries had a duplicate 2>/dev/null redirect after the append operator, which is a no-op but clutters the script. Synced from template. - rootfs/usr/local/bin/entrypoint.sh: remove duplicate 2>/dev/null from grep -vF /etc/hosts append line; bump version to 202606261500-git rootfs/usr/local/bin/entrypoint.sh
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# shellcheck shell=bash
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
##@Version : 202605241245-git
|
||||
##@Version : 202606261500-git
|
||||
# @@Author : Jason Hempstead
|
||||
# @@Contact : jason@casjaysdev.pro
|
||||
# @@License : WTFPL
|
||||
@@ -373,7 +373,7 @@ if [ "$ENTRYPOINT_FIRST_RUN" != "no" ]; then
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# import hosts file into container
|
||||
if [ -f "/usr/local/etc/hosts" ] && [ "$UPDATE_FILE_HOSTS" = "yes" ]; then
|
||||
grep -vF "$HOSTNAME" "/usr/local/etc/hosts" 2>/dev/null >>"/etc/hosts" 2>/dev/null || true
|
||||
grep -vF "$HOSTNAME" "/usr/local/etc/hosts" 2>/dev/null >>"/etc/hosts" || true
|
||||
fi
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# import resolv.conf file into container
|
||||
|
||||
Reference in New Issue
Block a user