Skip to content

Instantly share code, notes, and snippets.

View teamblack-ci's full-sized avatar

ePages Team Black CI Bot teamblack-ci

View GitHub Profile
@teamblack-ci
teamblack-ci / 00-update-vault.sh
Last active April 4, 2023 20:27
Let's Encrypt certificate management using Certbot and Vault
#!/bin/sh
#
# Perform certificate updates in Vault.
set -eo pipefail
if ! vault token lookup > /dev/null; then
echo "Login to Vault first."
exit 1
fi