-
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.
Support for syslog-based message and exceptions
- Loading branch information
Guillaume Ludinard
committed
Oct 12, 2023
1 parent
12783a3
commit 35ae98e
Showing
7 changed files
with
89 additions
and
14 deletions.
There are no files selected for viewing
Empty file.
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ build | |
.helmfile.yaml | ||
.ca-bundle/* | ||
.make.env | ||
.charts |
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,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
BASEDIR="$(realpath "${BASH_SOURCE%/*}/..")" | ||
|
||
if [[ -f "${BASEDIR}/.env" ]]; then | ||
# shellcheck source=/dev/null | ||
source "${BASEDIR}/.env" | ||
fi | ||
|
||
CA_PATHS=( | ||
"/etc/pki/ca-trust/source/anchors" # RHEL | ||
"/usr/local/share/ca-certificates" # Ubuntu / Alpine | ||
"/usr/share/pki/trust/anchors" # OpenSUSE | ||
"/etc/pki/trust/anchors" # OpenSUSE | ||
) | ||
|
||
function sync_local_ca () { | ||
for path in "${CA_PATHS[@]}"; do | ||
if [[ -d "${path}" ]] && find "${path}" -mindepth 1 -maxdepth 1 | read -r; then | ||
rsync -ahP "${path}/" "${BASEDIR}/.ca-bundle/" | ||
return | ||
fi | ||
done | ||
(>&2 echo "Could not find any standard system CA directory") | ||
} |
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
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