From 4bc8eb2473a521ba88f6dcd213a624338cecdeab Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Sat, 18 May 2024 06:09:14 +0000 Subject: [PATCH] Latest --- .../bin/post-installx/executable_post-cloudflared.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/home/dot_local/bin/post-installx/executable_post-cloudflared.sh b/home/dot_local/bin/post-installx/executable_post-cloudflared.sh index 6c379ccb..aca8bb4b 100644 --- a/home/dot_local/bin/post-installx/executable_post-cloudflared.sh +++ b/home/dot_local/bin/post-installx/executable_post-cloudflared.sh @@ -48,7 +48,7 @@ if command -v cloudflared > /dev/null; then sudo ln -s /usr/local/etc/cloudflared /etc/cloudflared else if [ ! -L /etc/cloudflared ]; then - logg info '/etc/cloudflared is present (and not symlinked) but files are being modified in /usr/local/etc/cloudflared' + logg warn '/etc/cloudflared is present as a regular directory (not symlinked) but files are being modified in /usr/local/etc/cloudflared' fi fi @@ -60,11 +60,11 @@ if command -v cloudflared > /dev/null; then logg info "Setting up $DOMAIN for access through cloudflared" sudo cloudflared tunnel route dns -f "$TUNNEL_ID" "$DOMAIN" && logg success "Successfully routed $DOMAIN to this machine's cloudflared Argo tunnel" fi - done< <(yq '.ingress[].hostname' /usr/local/etc/config.yml) + done< <(yq '.ingress[].hostname' /usr/local/etc/cloudflared/config.yml) - ### Update config.yml - logg info 'Updating /usr/local/etc/config.yml to reference tunnel ID' - sudo yq eval -i ".tunnel = \"$HOSTNAME_LOWER\"" config.yml + ### Update /usr/local/etc/cloudflared/config.yml + logg info 'Updating /usr/local/etc/cloudflared/config.yml to reference tunnel ID' + sudo yq eval -i ".tunnel = \"$HOSTNAME_LOWER\"" /usr/local/etc/cloudflared/config.yml ### Set up service if [ -d /Applications ] && [ -d /System ]; then