0
0
Fork 0
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:
Dennis Vestergaard Værum 2023-11-05 23:11:03 +01:00
parent 98dee55174
commit e2aa37deee

View file

@ -24,6 +24,11 @@ run_path() {
local hook_folder_path="/docker-entrypoint-hooks.d/$1"
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}"
(