-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`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
1 parent
9d015bf
commit b0b5a25
Showing
3 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $*" |