docker-sshd icon indicating copy to clipboard operation
docker-sshd copied to clipboard

scripts in /etc/entrypoint.d are not executed

Open paolino opened this issue 3 years ago • 1 comments

the executable test in

 if [[ -x ${f} ]]; then 
     echo ">> Running: ${f}" 
     ${f} 
 fi 

is not passing on files with 755 permissions set this could be a bug in musl libc

changing to

 if [[ -f ${f} ]]; then 
     echo ">> Running: ${f}" 
     ${f} 
 fi 

is the workaround we adopted

paolino avatar Aug 04 '21 09:08 paolino

It seems as though Alpine 3.14 is pertinent to a known bug here.

https://unix.stackexchange.com/questions/671246/why-is-bash-not-evaluating-the-executable-bit-correctly-in-alpine-3-14-2

kamikat avatar Nov 03 '21 08:11 kamikat

Please reopen if this continues with the latest 3.18 builds.

macropin avatar May 31 '23 06:05 macropin