We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de38960 commit ea578b8Copy full SHA for ea578b8
ci/release-image/entrypoint.sh
@@ -20,11 +20,11 @@ fi
20
21
# Allow users to have scripts run on container startup to prepare workspace.
22
# https://github.com/coder/code-server/issues/5177
23
-chmod u+x ${ENTRYPOINTD}/*.sh
24
-sudo chown -R ${USER} ${ENTRYPOINTD}/*
25
-for f in "${ENTRYPOINTD}"/*.sh; do
26
- echo "Running Entrypoint: ${f}"
27
- bash "${f}"
28
-done
+if [ -d "${ENTRYPOINTD}" ]; then
+ for f in $(find "${ENTRYPOINTD}" -type f -executable); do
+ echo "Running Entrypoint: ${f}"
+ "${f}"
+ done
+fi
29
30
exec dumb-init /usr/bin/code-server "$@"
0 commit comments