From 7fed52f01887bf9e127cd9f9d9e61aa761dee90a Mon Sep 17 00:00:00 2001 From: Rodrigo Aiala Feijolo Rodrigues Date: Mon, 20 Nov 2017 17:26:27 -0300 Subject: [PATCH 1/2] Update entrypoint --- entrypoint | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entrypoint b/entrypoint index 62b58df..2ee659c 100755 --- a/entrypoint +++ b/entrypoint @@ -172,6 +172,8 @@ if [ -d /etc/sftp.d ]; then if [ -x "$f" ]; then log "Running $f ..." $f + elif + log "Will not run $f because the file is not executable. Maybe you should run chmod +x $f outside your container." fi done unset f From 5427a7d59be7e63dfef41de2e43432a6add1cbb5 Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Fri, 5 Jan 2018 13:14:29 +0100 Subject: [PATCH 2/2] Fix if-else syntax and change log message --- entrypoint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint b/entrypoint index c1fe624..bff3652 100755 --- a/entrypoint +++ b/entrypoint @@ -172,8 +172,8 @@ if [ -d /etc/sftp.d ]; then if [ -x "$f" ]; then log "Running $f ..." $f - elif - log "Will not run $f because the file is not executable. Maybe you should run chmod +x $f outside your container." + else + log "Could not run $f, because it's missing execute permission (+x)." fi done unset f