generated from apereo/cas-overlay-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: allow using startup scripts with cas datadir georchestra/georchestra#4030 * feat: improve custom scripts to match other repos * feat: taking account of edevos recommandations
- Loading branch information
Showing
5 changed files
with
29 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
File renamed without changes.
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,20 @@ | ||
#!/bin/bash | ||
|
||
DIR=/docker-entrypoint.d | ||
|
||
# Executing custom scripts located in CUSTOM_SCRIPTS_DIRECTORY if environment variable is set | ||
if [[ -z "${CUSTOM_SCRIPTS_DIRECTORY}" ]]; then | ||
echo "[INFO] No CUSTOM_SCRIPTS_DIRECTORY env variable set" | ||
else | ||
echo "[INFO] CUSTOM_SCRIPTS_DIRECTORY env variable set to ${CUSTOM_SCRIPTS_DIRECTORY}" | ||
cp -v "${CUSTOM_SCRIPTS_DIRECTORY}"/* "$DIR" | ||
echo "[INFO] End copying custom scripts" | ||
fi | ||
|
||
if [[ -d "$DIR" ]] | ||
then | ||
# Regex is needed to execute all kind of files, including sh files. Warning : --regex not available in alpine images. | ||
/bin/run-parts --verbose "$DIR" --regex='.*' | ||
fi | ||
|
||
exec "$@" |
File renamed without changes.
File renamed without changes.