mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-19 18:36:09 +02:00
Update docker-entrypoint.sh - set hook folder find command to max-depth 2
This allows configMaps to mounted into containers in the hook folders as scripts in kubernetes. otherwise, this find command will never find a script mounted from a ConfigMap in kubernetes. Signed-off-by: JesseBot <jessebot@linux.com>
This commit is contained in:
parent
4cff57305b
commit
e3d358442c
1 changed files with 1 additions and 1 deletions
|
@ -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}" -type f -maxdepth 2 -iname '*.sh' -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
|
||||
|
|
Loading…
Add table
Reference in a new issue