Archived
1
0

Check if Entrypoint Dir exists & run all executable

This commit is contained in:
djarbz 2022-05-11 14:47:01 -05:00 committed by GitHub
parent de38960e27
commit ea578b81f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,11 +20,11 @@ fi
# Allow users to have scripts run on container startup to prepare workspace.
# https://github.com/coder/code-server/issues/5177
chmod u+x ${ENTRYPOINTD}/*.sh
sudo chown -R ${USER} ${ENTRYPOINTD}/*
for f in "${ENTRYPOINTD}"/*.sh; do
if [ -d "${ENTRYPOINTD}" ]; then
for f in $(find "${ENTRYPOINTD}" -type f -executable); do
echo "Running Entrypoint: ${f}"
bash "${f}"
"${f}"
done
fi
exec dumb-init /usr/bin/code-server "$@"