diff options
author | Yevhen Kolomeiko <Jarvis2709@gmail.com> | 2024-01-10 00:31:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-09 22:31:39 +0000 |
commit | d89def24d197f86bbd3c0e209dd4627e96740c53 (patch) | |
tree | 194fc21cc63d0cc6649cfa82f66edff4caf1715a | |
parent | 8afd97014cc3445e888a165f8c2d16af7ed036aa (diff) |
Fix for PR #2095 breaking post-installation scripts in k8s (#2115)
* Fix docker-entrypoint.sh
Signed-off-by: Yevhen Kolomeiko <Jarvis2709@gmail.com>
* Fix docker-entrypoint.sh for alpine
Signed-off-by: Yevhen Kolomeiko <Jarvis2709@gmail.com>
* Use '-o' instead of two find's in docker-entrypoint.sh
Signed-off-by: Yevhen Kolomeiko <Jarvis2709@gmail.com>
* Use more laconic find parameters set in docker-entrypoint.sh
Signed-off-by: Yevhen Kolomeiko <Jarvis2709@gmail.com>
---------
Signed-off-by: Yevhen Kolomeiko <Jarvis2709@gmail.com>
-rwxr-xr-x | docker-entrypoint.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index edb539a0..5b627f07 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -32,7 +32,7 @@ run_path() { echo "=> Searching for scripts (*.sh) to run, located in the folder: ${hook_folder_path}" ( - find "${hook_folder_path}" -type f -maxdepth 1 -iname '*.sh' -print | sort | while read -r script_file_path; do + find "${hook_folder_path}" -maxdepth 1 -iname '*.sh' '(' -type f -o -type l ')' -print | sort | while read -r script_file_path; do if ! [ -x "${script_file_path}" ]; then echo "==> The script \"${script_file_path}\" was skipped, because it didn't have the executable flag" continue |