#!/bin/bash set -e echo "๐Ÿงน Cleaning old data..." docker compose down -v docker compose down -v || true rm -rf machinekey rm -f docker-compose.yml zitadel.env zdb.env dashboard.env management.json relay.env turnserver.conf rm -rf machinekey/ docker-compose.yml *.env management.json turnserver.conf relay.env dashboard.env || true echo "๐Ÿš€ Starting fresh installation..." # Run the config part โ€“ ignore the false health-check failure at the end ./install-netbird-traefik.sh || true echo "๐Ÿ”ง Starting the real NetBird services (bypassing the dumb health check)..." docker compose up -d management dashboard signal relay coturn echo "โณ Waiting 15 seconds for everything to settle..." sleep 15 echo "" echo "๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰ ALL DONE โ€“ YOUR NETBIRD IS READY! ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰" echo "" echo "Dashboard โ†’ https://netbird.rozic-dev.com" echo "" echo "Login with:" echo " Username: admin@netbird.rozic-dev.com" if [ -f .env ]; then PASSWORD=$(grep "^Password:" .env | cut -d' ' -f2-) echo " Password: $PASSWORD" else echo " Password: (no .env โ€“ just click 'Sign up' on the page and create any user โ€“ first user = admin)" fi echo "" echo "Zitadel console (optional): https://netbird.rozic-dev.com/ui/console" echo "" echo "Enjoy your fully private, self-hosted WireGuard mesh! ๐Ÿš€"