From 06bd2d71953bb03a72894fa5eb39cf33d4105a78 Mon Sep 17 00:00:00 2001 From: abawi Date: Thu, 24 Apr 2025 21:58:27 +0200 Subject: [PATCH] Fixed deployment to rename the cloudflare config, but has to run deploy twice --- scripts/run_filepizza_cloudflare_tunnel.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/run_filepizza_cloudflare_tunnel.sh b/scripts/run_filepizza_cloudflare_tunnel.sh index 9a5961e..2be1212 100755 --- a/scripts/run_filepizza_cloudflare_tunnel.sh +++ b/scripts/run_filepizza_cloudflare_tunnel.sh @@ -184,6 +184,12 @@ if [ ! -f "$CREDS_FILE" ]; then exit 1 fi +# Copy the tunnel ID JSON file to filepizza.json +cp "$CREDENTIALS_DIR/$TUNNEL_ID.json" "$CREDENTIALS_DIR/filepizza.json" + +# Run the tunnel with the configuration +echo -e "${GREEN}Setup complete! Running tunnel...${NC}" + # Run the tunnel with the configuration echo -e "${GREEN}Setup complete! Running tunnel...${NC}" echo -e "${YELLOW}Your FilePizza server is now accessible at: https://$HOSTNAME${NC}"