Skip to content

Commit

Permalink
Fix for PR #2095 breaking post-installation scripts in k8s (#2115)
Browse files Browse the repository at this point in the history
* Fix docker-entrypoint.sh

Signed-off-by: Yevhen Kolomeiko <[email protected]>

* Fix docker-entrypoint.sh for alpine

Signed-off-by: Yevhen Kolomeiko <[email protected]>

* Use '-o' instead of two find's in docker-entrypoint.sh

Signed-off-by: Yevhen Kolomeiko <[email protected]>

* Use more laconic find parameters set in docker-entrypoint.sh

Signed-off-by: Yevhen Kolomeiko <[email protected]>

---------

Signed-off-by: Yevhen Kolomeiko <[email protected]>
  • Loading branch information
Sad-Soul-Eater authored Jan 9, 2024
1 parent 8afd970 commit d89def2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d89def2

Please sign in to comment.