From 11d961b3743f15a48f57a6c0d4abf553b5b12dc8 Mon Sep 17 00:00:00 2001 From: Joe Lillibridge Date: Thu, 31 Oct 2024 16:35:23 -0500 Subject: [PATCH] wip --- ...-target-certs.sh => install-target-certs.sh##template} | 8 ++++---- .gitignore | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) rename .config/yadm/bootstrap.d/{install-target-certs.sh => install-target-certs.sh##template} (88%) diff --git a/.config/yadm/bootstrap.d/install-target-certs.sh b/.config/yadm/bootstrap.d/install-target-certs.sh##template similarity index 88% rename from .config/yadm/bootstrap.d/install-target-certs.sh rename to .config/yadm/bootstrap.d/install-target-certs.sh##template index b1117b1..bb62f01 100755 --- a/.config/yadm/bootstrap.d/install-target-certs.sh +++ b/.config/yadm/bootstrap.d/install-target-certs.sh##template @@ -1,15 +1,15 @@ #!/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 + 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 \ No newline at end of file +fi +{% endif %} diff --git a/.gitignore b/.gitignore index aed46ec..dc1abaa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ .config/zsh/aliases.local .config/zsh/environment .config/target-certs/ +.config/yadm/bootstrap +.config/yadm/bootstrap.d/install-target-certs.sh .gitconfig.local .npmrc .zprofile.local