From ca976bcb2972d5f9cc9ae367450440fd9ab99118 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Thu, 15 Jun 2023 00:40:59 +0000 Subject: [PATCH] Latest --- .../universal/run_onchange_after_14-warp.sh.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_14-warp.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_14-warp.sh.tmpl index c06bc313..c5b62604 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_14-warp.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_14-warp.sh.tmpl @@ -96,11 +96,15 @@ if [ -d /System ] && [ -d /Applications ] && command -v warp-cli > /dev/null; th fi if [ -d /usr/local/etc/openssl@3/certs ]; then # Location on Intel macOS + logg info 'Adding Cloudflare certificate to `/usr/local/etc/openssl@3/certs/Cloudflare_CA.pem`' echo | sudo cat - "${XDG_DATA_HOME:-$HOME/.local/share}/warp/Cloudflare_CA.pem" >> /usr/local/etc/openssl@3/certs/Cloudflare_CA.pem + logg info 'Running `/usr/local/opt/openssl@3/bin/c_rehash`' /usr/local/opt/openssl@3/bin/c_rehash elif [ -d /opt/homebrew/etc/openssl@3/certs ]; then # Location on arm64 macOS + logg info 'Adding Cloudflare certificate to `/opt/homebrew/etc/openssl@3/certs/Cloudflare_CA.pem`' echo | sudo cat - "${XDG_DATA_HOME:-$HOME/.local/share}/warp/Cloudflare_CA.pem" >> /opt/homebrew/etc/openssl@3/certs/Cloudflare_CA.pem + logg info 'Running `/opt/homebrew/opt/openssl@3/bin/c_rehash`' /opt/homebrew/opt/openssl@3/bin/c_rehash else logg error 'Unable to add `Cloudflare_CA.pem` because `/usr/local/etc/openssl@3/certs` and `/opt/homebrew/etc/openssl@3/certs` do not exist!'