-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add container env variable to import settings
- Loading branch information
1 parent
775ab4a
commit 30810ba
Showing
2 changed files
with
19 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Imported /etc/hirs should only be used if one doesn't exist | ||
if [ ! -d "/etc/hirs" ]; then | ||
if [ -n "${HIRS_USE_IMPORTED_ETC_HIRS}" ]; then | ||
IMPORTED_ETC_HIRS_PATH="${HIRS_USE_IMPORTED_ETC_HIRS}" | ||
|
||
if [ -d "$IMPORTED_ETC_HIRS_PATH" ]; then | ||
cp -r "$IMPORTED_ETC_HIRS_PATH" /etc/hirs | ||
|
||
find /etc/hirs -type d -exec chown root:root {} + | ||
find /etc/hirs/certificates -type d -exec chown :mysql {} + | ||
find /etc/hirs -type d -exec chmod -R g+rx {} + | ||
find /etc/hirs -type f -exec chmod -R 644 {} + | ||
chmod 755 /etc/hirs | ||
fi | ||
fi | ||
fi |