mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-19 18:36:09 +02:00
Fix bug - that would make docker-entrypoint.sh failed, hook folders was empty
Signed-off-by: Dennis Vestergaard Værum <github@varum.dk>
This commit is contained in:
parent
e9e834b6bc
commit
4a55cad211
1 changed files with 6 additions and 1 deletions
|
@ -24,7 +24,12 @@ run_path() {
|
|||
local hook_folder_path="/docker-entrypoint-hooks.d/$1"
|
||||
local return_code=0
|
||||
|
||||
echo "=> Searching for scripts (*.sh) to run in the folder: ${hook_folder_path}"
|
||||
echo "=> Searching for scripts (*.sh) to run, located in the folder: ${hook_folder_path}"
|
||||
|
||||
if [ -z "$(ls -A "${hook_folder_path}")" ]; then
|
||||
echo "==> but the hook folder \"$(basename "${hook_folder_path}")\" is empty, so nothing to do"
|
||||
return 0
|
||||
fi
|
||||
|
||||
(
|
||||
for script_file_path in "${hook_folder_path}/"*.sh; do
|
||||
|
|
Loading…
Add table
Reference in a new issue