kubedocker commited on
Commit
5081e83
1 Parent(s): f5bd3cf

Delete docker-entrypoint.sh

Browse files
Files changed (1) hide show
  1. docker-entrypoint.sh +0 -47
docker-entrypoint.sh DELETED
@@ -1,47 +0,0 @@
1
- #!/bin/sh
2
- # vim:sw=4:ts=4:et
3
-
4
- set -e
5
-
6
- entrypoint_log() {
7
- if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then
8
- echo "$@"
9
- fi
10
- }
11
-
12
- if [ "$1" = "nginx" ] || [ "$1" = "nginx-debug" ]; then
13
- if /usr/bin/find "/docker-entrypoint.d/" -mindepth 1 -maxdepth 1 -type f -print -quit 2>/dev/null | read v; then
14
- entrypoint_log "$0: /docker-entrypoint.d/ is not empty, will attempt to perform configuration"
15
-
16
- entrypoint_log "$0: Looking for shell scripts in /docker-entrypoint.d/"
17
- find "/docker-entrypoint.d/" -follow -type f -print | sort -V | while read -r f; do
18
- case "$f" in
19
- *.envsh)
20
- if [ -x "$f" ]; then
21
- entrypoint_log "$0: Sourcing $f";
22
- . "$f"
23
- else
24
- # warn on shell scripts without exec bit
25
- entrypoint_log "$0: Ignoring $f, not executable";
26
- fi
27
- ;;
28
- *.sh)
29
- if [ -x "$f" ]; then
30
- entrypoint_log "$0: Launching $f";
31
- "$f"
32
- else
33
- # warn on shell scripts without exec bit
34
- entrypoint_log "$0: Ignoring $f, not executable";
35
- fi
36
- ;;
37
- *) entrypoint_log "$0: Ignoring $f";;
38
- esac
39
- done
40
-
41
- entrypoint_log "$0: Configuration complete; ready for start up"
42
- else
43
- entrypoint_log "$0: No files found in /docker-entrypoint.d/, skipping configuration"
44
- fi
45
- fi
46
-
47
- exec "$@"