Skip to content

Commit

Permalink
Merge pull request #568 from SUSE/create-pull-request/patch
Browse files Browse the repository at this point in the history
🤖: Update nginx scripts
  • Loading branch information
dcermak authored Aug 4, 2023
2 parents 359517e + aac833d commit 2f13b3f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/bci_build/nginx/10-listen-on-ipv6-by-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ entrypoint_log() {
fi
}

ME=$(basename $0)
ME=$(basename "$0")
DEFAULT_CONF_FILE="etc/nginx/conf.d/default.conf"

# check if we have ipv6 available
Expand Down
10 changes: 5 additions & 5 deletions src/bci_build/nginx/20-envsubst-on-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

ME=$(basename $0)
ME=$(basename "$0")

entrypoint_log() {
if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then
Expand Down Expand Up @@ -44,8 +44,8 @@ auto_envsubst() {
return 0
fi
find "$template_dir" -follow -type f -name "*$suffix" -print | while read -r template; do
relative_path="${template#$template_dir/}"
output_path="$output_dir/${relative_path%$suffix}"
relative_path="${template#"$template_dir/"}"
output_path="$output_dir/${relative_path%"$suffix"}"
subdir=$(dirname "$relative_path")
# create a subdirectory where the template file exists
mkdir -p "$output_dir/$subdir"
Expand All @@ -62,8 +62,8 @@ auto_envsubst() {
fi
add_stream_block
find "$template_dir" -follow -type f -name "*$stream_suffix" -print | while read -r template; do
relative_path="${template#$template_dir/}"
output_path="$stream_output_dir/${relative_path%$stream_suffix}"
relative_path="${template#"$template_dir/"}"
output_path="$stream_output_dir/${relative_path%"$stream_suffix"}"
subdir=$(dirname "$relative_path")
# create a subdirectory where the template file exists
mkdir -p "$stream_output_dir/$subdir"
Expand Down
2 changes: 1 addition & 1 deletion src/bci_build/nginx/30-tune-worker-processes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -eu

LC_ALL=C
ME=$( basename "$0" )
ME=$(basename "$0")
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

[ "${NGINX_ENTRYPOINT_WORKER_PROCESSES_AUTOTUNE:-}" ] || exit 0
Expand Down
2 changes: 1 addition & 1 deletion src/bci_build/nginx/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2011-2016 Nginx, Inc.
Copyright (C) 2011-2023 F5, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion src/bci_build/nginx/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ entrypoint_log() {
fi
}

if [ "$1" = "nginx" -o "$1" = "nginx-debug" ]; then
if [ "$1" = "nginx" ] || [ "$1" = "nginx-debug" ]; then
if /usr/bin/find "/docker-entrypoint.d/" -mindepth 1 -maxdepth 1 -type f -print -quit 2>/dev/null | read v; then
entrypoint_log "$0: /docker-entrypoint.d/ is not empty, will attempt to perform configuration"

Expand Down

0 comments on commit 2f13b3f

Please sign in to comment.