Skip to content

Commit

Permalink
chore:
Browse files Browse the repository at this point in the history
`chown` is now only done if there are files in the `settings` folder
that are not readable. This is necessary to avoid errors in a K8S
environment that occur when the mounted volume is readonly. In this
environment, the `defaultMode` for the volume must then be `0644` so
that the files can be read.
  • Loading branch information
jekutzsche committed Sep 22, 2021
1 parent 9d015bf commit b0b5a25
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .scripts/entrypoint-eps.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

chown -R iris:iris ./settings
if ! su iris -c "find ./settings -type f -exec cat {} > /dev/null +"; then
chown -R iris:iris ./settings
fi

exec su iris -c "./eps $*"
4 changes: 3 additions & 1 deletion .scripts/entrypoint-proxy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

chown -R iris:iris ./settings
if ! su iris -c "find ./settings -type f -exec cat {} > /dev/null +"; then
chown -R iris:iris ./settings
fi

exec su iris -c "./proxy $*"
4 changes: 3 additions & 1 deletion .scripts/entrypoint-sd.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

chown -R iris:iris ./settings
if ! su iris -c "find ./settings -type f -exec cat {} > /dev/null +"; then
chown -R iris:iris ./settings
fi

exec su iris -c "./sd $*"

0 comments on commit b0b5a25

Please sign in to comment.