diff options
author | Alejandro Colomar <alx@nginx.com> | 2022-10-27 14:30:47 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@nginx.com> | 2022-10-27 14:30:49 +0200 |
commit | a3cb07df20541939335fe42c75d0d479c2092b88 (patch) | |
tree | 82682856c59f32f2881c383445c18c4823d4fc70 /pkg/docker/docker-entrypoint.sh | |
parent | ac64ffde5718d6199c632831744765afd04fd740 (diff) | |
download | unit-a3cb07df20541939335fe42c75d0d479c2092b88.tar.gz unit-a3cb07df20541939335fe42c75d0d479c2092b88.tar.bz2 |
Fixed path for sed(1).
Some distros provide it in /bin/sed and others in both /bin/sed
and /usr/bin/sed. Use the more available one.
Reported-by: Konstantin Pavlov <thresh@nginx.com>
Fixes: ac64ffde5718 "Improved readability of <docker-entrypoint.sh>."
Signed-off-by: Alejandro Colomar <alx@nginx.com>
Diffstat (limited to '')
-rwxr-xr-x | pkg/docker/docker-entrypoint.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/docker/docker-entrypoint.sh b/pkg/docker/docker-entrypoint.sh index c07ef94c..7f65d94a 100755 --- a/pkg/docker/docker-entrypoint.sh +++ b/pkg/docker/docker-entrypoint.sh @@ -5,7 +5,7 @@ set -e curl_put() { RET=$(/usr/bin/curl -s -w '%{http_code}' -X PUT --data-binary @$1 --unix-socket /var/run/control.unit.sock http://localhost/$2) - RET_BODY=$(echo $RET | /usr/bin/sed '$ s/...$//') + RET_BODY=$(echo $RET | /bin/sed '$ s/...$//') RET_STATUS=$(echo $RET | /usr/bin/tail -c 4) if [ "$RET_STATUS" -ne "200" ]; then echo "$0: Error: HTTP response status code is '$RET_STATUS'" |