mirror of
https://github.com/dockersrc/alpine
synced 2026-06-30 17:45:53 -04:00
🐛 Fix duplicate 2>/dev/null in entrypoint.sh /etc/hosts line 🐛
Build and Push 3.15 / build (push) Failing after 3s
Build and Push 3.16 / build (push) Failing after 4s
Build and Push 3.18 / build (push) Failing after 7s
Build and Push 3.21 / build (push) Failing after 5s
Build and Push 3.17 / build (push) Failing after 10m7s
Build and Push 3.14 / build (push) Failing after 10m26s
Build and Push / build (push) Failing after 13m56s
Build and Push edge / build (push) Failing after 14m6s
Build and Push 3.23 / build (push) Failing after 14m15s
Build and Push 3.22 / build (push) Failing after 14m23s
Build and Push 3.20 / build (push) Failing after 14m32s
Build and Push 3.19 / build (push) Failing after 14m41s
Build and Push 3.15 / build (push) Failing after 3s
Build and Push 3.16 / build (push) Failing after 4s
Build and Push 3.18 / build (push) Failing after 7s
Build and Push 3.21 / build (push) Failing after 5s
Build and Push 3.17 / build (push) Failing after 10m7s
Build and Push 3.14 / build (push) Failing after 10m26s
Build and Push / build (push) Failing after 13m56s
Build and Push edge / build (push) Failing after 14m6s
Build and Push 3.23 / build (push) Failing after 14m15s
Build and Push 3.22 / build (push) Failing after 14m23s
Build and Push 3.20 / build (push) Failing after 14m32s
Build and Push 3.19 / build (push) Failing after 14m41s
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
|
#!/usr/bin/env bash
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
##@Version : 202606041210-git
|
##@Version : 202606261500-git
|
||||||
# @@Author : Jason Hempstead
|
# @@Author : Jason Hempstead
|
||||||
# @@Contact : jason@casjaysdev.pro
|
# @@Contact : jason@casjaysdev.pro
|
||||||
# @@License : WTFPL
|
# @@License : WTFPL
|
||||||
@@ -370,7 +370,7 @@ if [ "$ENTRYPOINT_FIRST_RUN" != "no" ]; then
|
|||||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# import hosts file into container
|
# import hosts file into container
|
||||||
if [ -f "/usr/local/etc/hosts" ] && [ "$UPDATE_FILE_HOSTS" = "yes" ]; then
|
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
|
fi
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# import resolv.conf file into container
|
# import resolv.conf file into container
|
||||||
|
|||||||
Reference in New Issue
Block a user