-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip chown command in startup script by setting BAIKAL_SKIP_CHOWN (#138)
* Ensure correct file permissions, unless behaviour is explicitly disabled * Documented skipping of chown commands in README.md * Corrected paths glob pattern in Github workflows --------- Co-authored-by: Cyrill Kulka <[email protected]>
- Loading branch information
1 parent
cf51c7f
commit 2786a1c
Showing
3 changed files
with
8 additions
and
2 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
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
6 changes: 5 additions & 1 deletion
6
files/docker-entrypoint.d/nginx/40-fix-baikal-file-permissions.sh
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,3 +1,7 @@ | ||
#!/bin/sh | ||
|
||
chown -R nginx:nginx /var/www/baikal | ||
# Ensure correct file permissions, unless behaviour is explicitly disabled | ||
if [ -z ${BAIKAL_SKIP_CHOWN+x} ] | ||
then | ||
chown -R nginx:nginx /var/www/baikal | ||
fi |