update so we can run more than one changemaker per machine
This commit is contained in:
parent
e9d5af3d24
commit
4b6acbd6bb
@ -47,7 +47,9 @@ if [[ ! "$TUNNEL_SUFFIX" =~ ^[a-zA-Z0-9-]+$ ]]; then
|
||||
fi
|
||||
|
||||
TUNNEL_NAME="changemaker-lite-$TUNNEL_SUFFIX"
|
||||
SERVICE_NAME="cloudflared-changemaker-lite-$TUNNEL_SUFFIX"
|
||||
echo "Using tunnel name: $TUNNEL_NAME"
|
||||
echo "Using service name: $SERVICE_NAME"
|
||||
echo ""
|
||||
|
||||
# Check if Cloudflare credentials are properly configured
|
||||
@ -312,7 +314,7 @@ EOL
|
||||
|
||||
# Create systemd service for cloudflared
|
||||
create_systemd_service() {
|
||||
echo "Creating systemd service for cloudflared tunnel..."
|
||||
echo "Creating systemd service for cloudflared tunnel: $SERVICE_NAME"
|
||||
|
||||
local cloudflared_path=$(which cloudflared)
|
||||
local username=$(whoami)
|
||||
@ -620,6 +622,7 @@ echo "#############################################################"
|
||||
echo ""
|
||||
echo "Tunnel Name: $TUNNEL_NAME"
|
||||
echo "Tunnel ID: $CF_TUNNEL_ID"
|
||||
echo "Service Name: $SERVICE_NAME"
|
||||
echo ""
|
||||
echo "Your services are now accessible at:"
|
||||
echo ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user