diff --git a/mainline/alpine-perl/10-listen-on-ipv6-by-default.sh b/mainline/alpine-perl/10-listen-on-ipv6-by-default.sh index 85418f3ce3a75998becb90870e81660343b18e2f..f9cf4dad3d57cb28169280092918a2cbf63c558b 100755 --- a/mainline/alpine-perl/10-listen-on-ipv6-by-default.sh +++ b/mainline/alpine-perl/10-listen-on-ipv6-by-default.sh @@ -8,25 +8,25 @@ DEFAULT_CONF_FILE="etc/nginx/conf.d/default.conf" # check if we have ipv6 available if [ ! -f "/proc/net/if_inet6" ]; then - echo "$ME: ipv6 not available, exiting" 1>&2 + echo "$ME: error: ipv6 not available" 1>&2 exit 0 fi if [ ! -f "/$DEFAULT_CONF_FILE" ]; then - echo "$ME: /$DEFAULT_CONF_FILE is not a file or does not exist, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE is not a file or does not exist" 1>&2 exit 0 fi # check if the file can be modified, e.g. not on a r/o filesystem -touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: Can not modify /$DEFAULT_CONF_FILE (read-only file system?), exiting" >1&2; exit 0; } +touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: error: can not modify /$DEFAULT_CONF_FILE (read-only file system?)" >1&2; exit 0; } # check if the file is already modified, e.g. on a container restart -grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: IPv6 listen already enabled, exiting"; exit 0; } +grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: error: IPv6 listen already enabled"; exit 0; } if [ -f "/etc/os-release" ]; then . /etc/os-release else - echo "$ME: can not guess the operating system, exiting" 1>&2 + echo "$ME: error: can not guess the operating system" 1>&2 exit 0 fi @@ -36,19 +36,19 @@ case "$ID" in "debian") CHECKSUM=$(dpkg-query --show --showformat='${Conffiles}\n' nginx | grep $DEFAULT_CONF_FILE | cut -d' ' -f 3) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | md5sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packaged version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packaged version" 1>&2 exit 0 } ;; "alpine") CHECKSUM=$(apk manifest nginx 2>/dev/null| grep $DEFAULT_CONF_FILE | cut -d' ' -f 1 | cut -d ':' -f 2) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | sha1sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packages version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packages version" 1>&2 exit 0 } ;; *) - echo "$ME: Unsupported distribution, exiting" 1>&2 + echo "$ME: error: Unsupported distribution" 1>&2 exit 0 ;; esac diff --git a/mainline/alpine-perl/20-envsubst-on-templates.sh b/mainline/alpine-perl/20-envsubst-on-templates.sh index 38df3a67f8375b056c2aa10431eda25b95a2374b..545c765b72ec0ef4768d878c7fdc7ce5543e6ea0 100755 --- a/mainline/alpine-perl/20-envsubst-on-templates.sh +++ b/mainline/alpine-perl/20-envsubst-on-templates.sh @@ -13,7 +13,7 @@ auto_envsubst() { defined_envs=$(printf '${%s} ' $(env | cut -d= -f1)) [ -d "$template_dir" ] || return 0 if [ ! -w "$output_dir" ]; then - echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable, exiting" 1>&2 + echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable" 1>&2 return 0 fi find "$template_dir" -follow -type f -name "*$suffix" -print | while read -r template; do diff --git a/mainline/alpine/10-listen-on-ipv6-by-default.sh b/mainline/alpine/10-listen-on-ipv6-by-default.sh index 85418f3ce3a75998becb90870e81660343b18e2f..f9cf4dad3d57cb28169280092918a2cbf63c558b 100755 --- a/mainline/alpine/10-listen-on-ipv6-by-default.sh +++ b/mainline/alpine/10-listen-on-ipv6-by-default.sh @@ -8,25 +8,25 @@ DEFAULT_CONF_FILE="etc/nginx/conf.d/default.conf" # check if we have ipv6 available if [ ! -f "/proc/net/if_inet6" ]; then - echo "$ME: ipv6 not available, exiting" 1>&2 + echo "$ME: error: ipv6 not available" 1>&2 exit 0 fi if [ ! -f "/$DEFAULT_CONF_FILE" ]; then - echo "$ME: /$DEFAULT_CONF_FILE is not a file or does not exist, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE is not a file or does not exist" 1>&2 exit 0 fi # check if the file can be modified, e.g. not on a r/o filesystem -touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: Can not modify /$DEFAULT_CONF_FILE (read-only file system?), exiting" >1&2; exit 0; } +touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: error: can not modify /$DEFAULT_CONF_FILE (read-only file system?)" >1&2; exit 0; } # check if the file is already modified, e.g. on a container restart -grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: IPv6 listen already enabled, exiting"; exit 0; } +grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: error: IPv6 listen already enabled"; exit 0; } if [ -f "/etc/os-release" ]; then . /etc/os-release else - echo "$ME: can not guess the operating system, exiting" 1>&2 + echo "$ME: error: can not guess the operating system" 1>&2 exit 0 fi @@ -36,19 +36,19 @@ case "$ID" in "debian") CHECKSUM=$(dpkg-query --show --showformat='${Conffiles}\n' nginx | grep $DEFAULT_CONF_FILE | cut -d' ' -f 3) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | md5sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packaged version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packaged version" 1>&2 exit 0 } ;; "alpine") CHECKSUM=$(apk manifest nginx 2>/dev/null| grep $DEFAULT_CONF_FILE | cut -d' ' -f 1 | cut -d ':' -f 2) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | sha1sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packages version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packages version" 1>&2 exit 0 } ;; *) - echo "$ME: Unsupported distribution, exiting" 1>&2 + echo "$ME: error: Unsupported distribution" 1>&2 exit 0 ;; esac diff --git a/mainline/alpine/20-envsubst-on-templates.sh b/mainline/alpine/20-envsubst-on-templates.sh index 38df3a67f8375b056c2aa10431eda25b95a2374b..545c765b72ec0ef4768d878c7fdc7ce5543e6ea0 100755 --- a/mainline/alpine/20-envsubst-on-templates.sh +++ b/mainline/alpine/20-envsubst-on-templates.sh @@ -13,7 +13,7 @@ auto_envsubst() { defined_envs=$(printf '${%s} ' $(env | cut -d= -f1)) [ -d "$template_dir" ] || return 0 if [ ! -w "$output_dir" ]; then - echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable, exiting" 1>&2 + echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable" 1>&2 return 0 fi find "$template_dir" -follow -type f -name "*$suffix" -print | while read -r template; do diff --git a/mainline/buster-perl/10-listen-on-ipv6-by-default.sh b/mainline/buster-perl/10-listen-on-ipv6-by-default.sh index 85418f3ce3a75998becb90870e81660343b18e2f..f9cf4dad3d57cb28169280092918a2cbf63c558b 100755 --- a/mainline/buster-perl/10-listen-on-ipv6-by-default.sh +++ b/mainline/buster-perl/10-listen-on-ipv6-by-default.sh @@ -8,25 +8,25 @@ DEFAULT_CONF_FILE="etc/nginx/conf.d/default.conf" # check if we have ipv6 available if [ ! -f "/proc/net/if_inet6" ]; then - echo "$ME: ipv6 not available, exiting" 1>&2 + echo "$ME: error: ipv6 not available" 1>&2 exit 0 fi if [ ! -f "/$DEFAULT_CONF_FILE" ]; then - echo "$ME: /$DEFAULT_CONF_FILE is not a file or does not exist, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE is not a file or does not exist" 1>&2 exit 0 fi # check if the file can be modified, e.g. not on a r/o filesystem -touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: Can not modify /$DEFAULT_CONF_FILE (read-only file system?), exiting" >1&2; exit 0; } +touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: error: can not modify /$DEFAULT_CONF_FILE (read-only file system?)" >1&2; exit 0; } # check if the file is already modified, e.g. on a container restart -grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: IPv6 listen already enabled, exiting"; exit 0; } +grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: error: IPv6 listen already enabled"; exit 0; } if [ -f "/etc/os-release" ]; then . /etc/os-release else - echo "$ME: can not guess the operating system, exiting" 1>&2 + echo "$ME: error: can not guess the operating system" 1>&2 exit 0 fi @@ -36,19 +36,19 @@ case "$ID" in "debian") CHECKSUM=$(dpkg-query --show --showformat='${Conffiles}\n' nginx | grep $DEFAULT_CONF_FILE | cut -d' ' -f 3) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | md5sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packaged version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packaged version" 1>&2 exit 0 } ;; "alpine") CHECKSUM=$(apk manifest nginx 2>/dev/null| grep $DEFAULT_CONF_FILE | cut -d' ' -f 1 | cut -d ':' -f 2) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | sha1sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packages version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packages version" 1>&2 exit 0 } ;; *) - echo "$ME: Unsupported distribution, exiting" 1>&2 + echo "$ME: error: Unsupported distribution" 1>&2 exit 0 ;; esac diff --git a/mainline/buster-perl/20-envsubst-on-templates.sh b/mainline/buster-perl/20-envsubst-on-templates.sh index 38df3a67f8375b056c2aa10431eda25b95a2374b..545c765b72ec0ef4768d878c7fdc7ce5543e6ea0 100755 --- a/mainline/buster-perl/20-envsubst-on-templates.sh +++ b/mainline/buster-perl/20-envsubst-on-templates.sh @@ -13,7 +13,7 @@ auto_envsubst() { defined_envs=$(printf '${%s} ' $(env | cut -d= -f1)) [ -d "$template_dir" ] || return 0 if [ ! -w "$output_dir" ]; then - echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable, exiting" 1>&2 + echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable" 1>&2 return 0 fi find "$template_dir" -follow -type f -name "*$suffix" -print | while read -r template; do diff --git a/mainline/buster/10-listen-on-ipv6-by-default.sh b/mainline/buster/10-listen-on-ipv6-by-default.sh index 85418f3ce3a75998becb90870e81660343b18e2f..f9cf4dad3d57cb28169280092918a2cbf63c558b 100755 --- a/mainline/buster/10-listen-on-ipv6-by-default.sh +++ b/mainline/buster/10-listen-on-ipv6-by-default.sh @@ -8,25 +8,25 @@ DEFAULT_CONF_FILE="etc/nginx/conf.d/default.conf" # check if we have ipv6 available if [ ! -f "/proc/net/if_inet6" ]; then - echo "$ME: ipv6 not available, exiting" 1>&2 + echo "$ME: error: ipv6 not available" 1>&2 exit 0 fi if [ ! -f "/$DEFAULT_CONF_FILE" ]; then - echo "$ME: /$DEFAULT_CONF_FILE is not a file or does not exist, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE is not a file or does not exist" 1>&2 exit 0 fi # check if the file can be modified, e.g. not on a r/o filesystem -touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: Can not modify /$DEFAULT_CONF_FILE (read-only file system?), exiting" >1&2; exit 0; } +touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: error: can not modify /$DEFAULT_CONF_FILE (read-only file system?)" >1&2; exit 0; } # check if the file is already modified, e.g. on a container restart -grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: IPv6 listen already enabled, exiting"; exit 0; } +grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: error: IPv6 listen already enabled"; exit 0; } if [ -f "/etc/os-release" ]; then . /etc/os-release else - echo "$ME: can not guess the operating system, exiting" 1>&2 + echo "$ME: error: can not guess the operating system" 1>&2 exit 0 fi @@ -36,19 +36,19 @@ case "$ID" in "debian") CHECKSUM=$(dpkg-query --show --showformat='${Conffiles}\n' nginx | grep $DEFAULT_CONF_FILE | cut -d' ' -f 3) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | md5sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packaged version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packaged version" 1>&2 exit 0 } ;; "alpine") CHECKSUM=$(apk manifest nginx 2>/dev/null| grep $DEFAULT_CONF_FILE | cut -d' ' -f 1 | cut -d ':' -f 2) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | sha1sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packages version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packages version" 1>&2 exit 0 } ;; *) - echo "$ME: Unsupported distribution, exiting" 1>&2 + echo "$ME: error: Unsupported distribution" 1>&2 exit 0 ;; esac diff --git a/mainline/buster/20-envsubst-on-templates.sh b/mainline/buster/20-envsubst-on-templates.sh index 38df3a67f8375b056c2aa10431eda25b95a2374b..545c765b72ec0ef4768d878c7fdc7ce5543e6ea0 100755 --- a/mainline/buster/20-envsubst-on-templates.sh +++ b/mainline/buster/20-envsubst-on-templates.sh @@ -13,7 +13,7 @@ auto_envsubst() { defined_envs=$(printf '${%s} ' $(env | cut -d= -f1)) [ -d "$template_dir" ] || return 0 if [ ! -w "$output_dir" ]; then - echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable, exiting" 1>&2 + echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable" 1>&2 return 0 fi find "$template_dir" -follow -type f -name "*$suffix" -print | while read -r template; do diff --git a/stable/alpine-perl/10-listen-on-ipv6-by-default.sh b/stable/alpine-perl/10-listen-on-ipv6-by-default.sh index 85418f3ce3a75998becb90870e81660343b18e2f..f9cf4dad3d57cb28169280092918a2cbf63c558b 100755 --- a/stable/alpine-perl/10-listen-on-ipv6-by-default.sh +++ b/stable/alpine-perl/10-listen-on-ipv6-by-default.sh @@ -8,25 +8,25 @@ DEFAULT_CONF_FILE="etc/nginx/conf.d/default.conf" # check if we have ipv6 available if [ ! -f "/proc/net/if_inet6" ]; then - echo "$ME: ipv6 not available, exiting" 1>&2 + echo "$ME: error: ipv6 not available" 1>&2 exit 0 fi if [ ! -f "/$DEFAULT_CONF_FILE" ]; then - echo "$ME: /$DEFAULT_CONF_FILE is not a file or does not exist, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE is not a file or does not exist" 1>&2 exit 0 fi # check if the file can be modified, e.g. not on a r/o filesystem -touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: Can not modify /$DEFAULT_CONF_FILE (read-only file system?), exiting" >1&2; exit 0; } +touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: error: can not modify /$DEFAULT_CONF_FILE (read-only file system?)" >1&2; exit 0; } # check if the file is already modified, e.g. on a container restart -grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: IPv6 listen already enabled, exiting"; exit 0; } +grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: error: IPv6 listen already enabled"; exit 0; } if [ -f "/etc/os-release" ]; then . /etc/os-release else - echo "$ME: can not guess the operating system, exiting" 1>&2 + echo "$ME: error: can not guess the operating system" 1>&2 exit 0 fi @@ -36,19 +36,19 @@ case "$ID" in "debian") CHECKSUM=$(dpkg-query --show --showformat='${Conffiles}\n' nginx | grep $DEFAULT_CONF_FILE | cut -d' ' -f 3) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | md5sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packaged version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packaged version" 1>&2 exit 0 } ;; "alpine") CHECKSUM=$(apk manifest nginx 2>/dev/null| grep $DEFAULT_CONF_FILE | cut -d' ' -f 1 | cut -d ':' -f 2) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | sha1sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packages version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packages version" 1>&2 exit 0 } ;; *) - echo "$ME: Unsupported distribution, exiting" 1>&2 + echo "$ME: error: Unsupported distribution" 1>&2 exit 0 ;; esac diff --git a/stable/alpine-perl/20-envsubst-on-templates.sh b/stable/alpine-perl/20-envsubst-on-templates.sh index 38df3a67f8375b056c2aa10431eda25b95a2374b..545c765b72ec0ef4768d878c7fdc7ce5543e6ea0 100755 --- a/stable/alpine-perl/20-envsubst-on-templates.sh +++ b/stable/alpine-perl/20-envsubst-on-templates.sh @@ -13,7 +13,7 @@ auto_envsubst() { defined_envs=$(printf '${%s} ' $(env | cut -d= -f1)) [ -d "$template_dir" ] || return 0 if [ ! -w "$output_dir" ]; then - echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable, exiting" 1>&2 + echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable" 1>&2 return 0 fi find "$template_dir" -follow -type f -name "*$suffix" -print | while read -r template; do diff --git a/stable/alpine/10-listen-on-ipv6-by-default.sh b/stable/alpine/10-listen-on-ipv6-by-default.sh index 85418f3ce3a75998becb90870e81660343b18e2f..f9cf4dad3d57cb28169280092918a2cbf63c558b 100755 --- a/stable/alpine/10-listen-on-ipv6-by-default.sh +++ b/stable/alpine/10-listen-on-ipv6-by-default.sh @@ -8,25 +8,25 @@ DEFAULT_CONF_FILE="etc/nginx/conf.d/default.conf" # check if we have ipv6 available if [ ! -f "/proc/net/if_inet6" ]; then - echo "$ME: ipv6 not available, exiting" 1>&2 + echo "$ME: error: ipv6 not available" 1>&2 exit 0 fi if [ ! -f "/$DEFAULT_CONF_FILE" ]; then - echo "$ME: /$DEFAULT_CONF_FILE is not a file or does not exist, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE is not a file or does not exist" 1>&2 exit 0 fi # check if the file can be modified, e.g. not on a r/o filesystem -touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: Can not modify /$DEFAULT_CONF_FILE (read-only file system?), exiting" >1&2; exit 0; } +touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: error: can not modify /$DEFAULT_CONF_FILE (read-only file system?)" >1&2; exit 0; } # check if the file is already modified, e.g. on a container restart -grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: IPv6 listen already enabled, exiting"; exit 0; } +grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: error: IPv6 listen already enabled"; exit 0; } if [ -f "/etc/os-release" ]; then . /etc/os-release else - echo "$ME: can not guess the operating system, exiting" 1>&2 + echo "$ME: error: can not guess the operating system" 1>&2 exit 0 fi @@ -36,19 +36,19 @@ case "$ID" in "debian") CHECKSUM=$(dpkg-query --show --showformat='${Conffiles}\n' nginx | grep $DEFAULT_CONF_FILE | cut -d' ' -f 3) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | md5sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packaged version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packaged version" 1>&2 exit 0 } ;; "alpine") CHECKSUM=$(apk manifest nginx 2>/dev/null| grep $DEFAULT_CONF_FILE | cut -d' ' -f 1 | cut -d ':' -f 2) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | sha1sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packages version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packages version" 1>&2 exit 0 } ;; *) - echo "$ME: Unsupported distribution, exiting" 1>&2 + echo "$ME: error: Unsupported distribution" 1>&2 exit 0 ;; esac diff --git a/stable/alpine/20-envsubst-on-templates.sh b/stable/alpine/20-envsubst-on-templates.sh index 38df3a67f8375b056c2aa10431eda25b95a2374b..545c765b72ec0ef4768d878c7fdc7ce5543e6ea0 100755 --- a/stable/alpine/20-envsubst-on-templates.sh +++ b/stable/alpine/20-envsubst-on-templates.sh @@ -13,7 +13,7 @@ auto_envsubst() { defined_envs=$(printf '${%s} ' $(env | cut -d= -f1)) [ -d "$template_dir" ] || return 0 if [ ! -w "$output_dir" ]; then - echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable, exiting" 1>&2 + echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable" 1>&2 return 0 fi find "$template_dir" -follow -type f -name "*$suffix" -print | while read -r template; do diff --git a/stable/buster-perl/10-listen-on-ipv6-by-default.sh b/stable/buster-perl/10-listen-on-ipv6-by-default.sh index 85418f3ce3a75998becb90870e81660343b18e2f..f9cf4dad3d57cb28169280092918a2cbf63c558b 100755 --- a/stable/buster-perl/10-listen-on-ipv6-by-default.sh +++ b/stable/buster-perl/10-listen-on-ipv6-by-default.sh @@ -8,25 +8,25 @@ DEFAULT_CONF_FILE="etc/nginx/conf.d/default.conf" # check if we have ipv6 available if [ ! -f "/proc/net/if_inet6" ]; then - echo "$ME: ipv6 not available, exiting" 1>&2 + echo "$ME: error: ipv6 not available" 1>&2 exit 0 fi if [ ! -f "/$DEFAULT_CONF_FILE" ]; then - echo "$ME: /$DEFAULT_CONF_FILE is not a file or does not exist, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE is not a file or does not exist" 1>&2 exit 0 fi # check if the file can be modified, e.g. not on a r/o filesystem -touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: Can not modify /$DEFAULT_CONF_FILE (read-only file system?), exiting" >1&2; exit 0; } +touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: error: can not modify /$DEFAULT_CONF_FILE (read-only file system?)" >1&2; exit 0; } # check if the file is already modified, e.g. on a container restart -grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: IPv6 listen already enabled, exiting"; exit 0; } +grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: error: IPv6 listen already enabled"; exit 0; } if [ -f "/etc/os-release" ]; then . /etc/os-release else - echo "$ME: can not guess the operating system, exiting" 1>&2 + echo "$ME: error: can not guess the operating system" 1>&2 exit 0 fi @@ -36,19 +36,19 @@ case "$ID" in "debian") CHECKSUM=$(dpkg-query --show --showformat='${Conffiles}\n' nginx | grep $DEFAULT_CONF_FILE | cut -d' ' -f 3) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | md5sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packaged version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packaged version" 1>&2 exit 0 } ;; "alpine") CHECKSUM=$(apk manifest nginx 2>/dev/null| grep $DEFAULT_CONF_FILE | cut -d' ' -f 1 | cut -d ':' -f 2) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | sha1sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packages version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packages version" 1>&2 exit 0 } ;; *) - echo "$ME: Unsupported distribution, exiting" 1>&2 + echo "$ME: error: Unsupported distribution" 1>&2 exit 0 ;; esac diff --git a/stable/buster-perl/20-envsubst-on-templates.sh b/stable/buster-perl/20-envsubst-on-templates.sh index 38df3a67f8375b056c2aa10431eda25b95a2374b..545c765b72ec0ef4768d878c7fdc7ce5543e6ea0 100755 --- a/stable/buster-perl/20-envsubst-on-templates.sh +++ b/stable/buster-perl/20-envsubst-on-templates.sh @@ -13,7 +13,7 @@ auto_envsubst() { defined_envs=$(printf '${%s} ' $(env | cut -d= -f1)) [ -d "$template_dir" ] || return 0 if [ ! -w "$output_dir" ]; then - echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable, exiting" 1>&2 + echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable" 1>&2 return 0 fi find "$template_dir" -follow -type f -name "*$suffix" -print | while read -r template; do diff --git a/stable/buster/10-listen-on-ipv6-by-default.sh b/stable/buster/10-listen-on-ipv6-by-default.sh index 85418f3ce3a75998becb90870e81660343b18e2f..f9cf4dad3d57cb28169280092918a2cbf63c558b 100755 --- a/stable/buster/10-listen-on-ipv6-by-default.sh +++ b/stable/buster/10-listen-on-ipv6-by-default.sh @@ -8,25 +8,25 @@ DEFAULT_CONF_FILE="etc/nginx/conf.d/default.conf" # check if we have ipv6 available if [ ! -f "/proc/net/if_inet6" ]; then - echo "$ME: ipv6 not available, exiting" 1>&2 + echo "$ME: error: ipv6 not available" 1>&2 exit 0 fi if [ ! -f "/$DEFAULT_CONF_FILE" ]; then - echo "$ME: /$DEFAULT_CONF_FILE is not a file or does not exist, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE is not a file or does not exist" 1>&2 exit 0 fi # check if the file can be modified, e.g. not on a r/o filesystem -touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: Can not modify /$DEFAULT_CONF_FILE (read-only file system?), exiting" >1&2; exit 0; } +touch /$DEFAULT_CONF_FILE 2>/dev/null || { echo "$ME: error: can not modify /$DEFAULT_CONF_FILE (read-only file system?)" >1&2; exit 0; } # check if the file is already modified, e.g. on a container restart -grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: IPv6 listen already enabled, exiting"; exit 0; } +grep -q "listen \[::]\:80;" /$DEFAULT_CONF_FILE && { echo >&3 "$ME: error: IPv6 listen already enabled"; exit 0; } if [ -f "/etc/os-release" ]; then . /etc/os-release else - echo "$ME: can not guess the operating system, exiting" 1>&2 + echo "$ME: error: can not guess the operating system" 1>&2 exit 0 fi @@ -36,19 +36,19 @@ case "$ID" in "debian") CHECKSUM=$(dpkg-query --show --showformat='${Conffiles}\n' nginx | grep $DEFAULT_CONF_FILE | cut -d' ' -f 3) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | md5sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packaged version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packaged version" 1>&2 exit 0 } ;; "alpine") CHECKSUM=$(apk manifest nginx 2>/dev/null| grep $DEFAULT_CONF_FILE | cut -d' ' -f 1 | cut -d ':' -f 2) echo "$CHECKSUM /$DEFAULT_CONF_FILE" | sha1sum -c - >/dev/null 2>&1 || { - echo "$ME: /$DEFAULT_CONF_FILE differs from the packages version, exiting" 1>&2 + echo "$ME: error: /$DEFAULT_CONF_FILE differs from the packages version" 1>&2 exit 0 } ;; *) - echo "$ME: Unsupported distribution, exiting" 1>&2 + echo "$ME: error: Unsupported distribution" 1>&2 exit 0 ;; esac diff --git a/stable/buster/20-envsubst-on-templates.sh b/stable/buster/20-envsubst-on-templates.sh index 38df3a67f8375b056c2aa10431eda25b95a2374b..545c765b72ec0ef4768d878c7fdc7ce5543e6ea0 100755 --- a/stable/buster/20-envsubst-on-templates.sh +++ b/stable/buster/20-envsubst-on-templates.sh @@ -13,7 +13,7 @@ auto_envsubst() { defined_envs=$(printf '${%s} ' $(env | cut -d= -f1)) [ -d "$template_dir" ] || return 0 if [ ! -w "$output_dir" ]; then - echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable, exiting" 1>&2 + echo "$ME: ERROR: $template_dir exists, but $output_dir is not writable" 1>&2 return 0 fi find "$template_dir" -follow -type f -name "*$suffix" -print | while read -r template; do