mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-20 02:46:10 +02:00
added msg if hook folder does not exist
Signed-off-by: Dennis Vestergaard Værum <github@varum.dk>
This commit is contained in:
parent
98dee55174
commit
e2aa37deee
1 changed files with 5 additions and 0 deletions
|
@ -24,6 +24,11 @@ run_path() {
|
||||||
local hook_folder_path="/docker-entrypoint-hooks.d/$1"
|
local hook_folder_path="/docker-entrypoint-hooks.d/$1"
|
||||||
local return_code=0
|
local return_code=0
|
||||||
|
|
||||||
|
if ! [ -d "${hook_folder_path}" ]; then
|
||||||
|
echo "=> Skipping the folder \"${hook_folder_path}\", because it doesn't exist"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
echo "=> Searching for scripts (*.sh) to run, located in the folder: ${hook_folder_path}"
|
echo "=> Searching for scripts (*.sh) to run, located in the folder: ${hook_folder_path}"
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|
Loading…
Add table
Reference in a new issue