dotfiles/.config/yadm/bootstrap.d/install-target-certs.sh##class.Work
Joe Lillibridge 593efa45b1
wip
2024-12-04 12:09:36 -06:00

16 lines
465 B
Bash
Executable File

#!/bin/sh
{% if yadm.class == "Work" %}
echo "Creating Target CA bundle directory..."
mkdir -p "$HOME"/.config/target-certs
# Download the Target CA bundle
echo "Downloading Target CA bundle..."
if ! curl -s -o "$HOME"/.config/target-certs/tgt-ca-bundle.crt \
https://browserconfig.target.com/tgt-certs/tgt-ca-bundle.crt; then
echo "Failed to download Target CA bundle."
exit 1
else
echo "Downloaded and installed Target CA bundle."
fi
{% endif %}