@@ -76,7 +76,7 @@ CURRENT_USER=$USER
7676
7777echo "Installing requirements for: OS: $OS_TYPE"
7878if [ $EUID != 0 ]; then
79- echo "Please run this script as root or with sudo ❌"
79+ echo "Please run this script as root or with sudo ❌"
8080 exit
8181fi
8282
@@ -263,7 +263,7 @@ const setupMainDirectory = () => `
263263 # Create the /etc/dokploy directory
264264 mkdir -p /etc/dokploy
265265 chmod 777 /etc/dokploy
266-
266+
267267 echo "Directory /etc/dokploy created ✅"
268268 fi
269269` ;
@@ -276,16 +276,16 @@ export const setupSwarm = () => `
276276 # Get IP address
277277 get_ip() {
278278 local ip=""
279-
279+
280280 # Try IPv4 with multiple services
281281 # First attempt: ifconfig.io
282282 ip=\$(curl -4s --connect-timeout 5 https://ifconfig.io 2>/dev/null)
283-
283+
284284 # Second attempt: icanhazip.com
285285 if [ -z "\$ip" ]; then
286286 ip=\$(curl -4s --connect-timeout 5 https://icanhazip.com 2>/dev/null)
287287 fi
288-
288+
289289 # Third attempt: ipecho.net
290290 if [ -z "\$ip" ]; then
291291 ip=\$(curl -4s --connect-timeout 5 https://ipecho.net/plain 2>/dev/null)
@@ -295,12 +295,12 @@ export const setupSwarm = () => `
295295 if [ -z "\$ip" ]; then
296296 # Try IPv6 with ifconfig.io
297297 ip=\$(curl -6s --connect-timeout 5 https://ifconfig.io 2>/dev/null)
298-
298+
299299 # Try IPv6 with icanhazip.com
300300 if [ -z "\$ip" ]; then
301301 ip=\$(curl -6s --connect-timeout 5 https://icanhazip.com 2>/dev/null)
302302 fi
303-
303+
304304 # Try IPv6 with ipecho.net
305305 if [ -z "\$ip" ]; then
306306 ip=\$(curl -6s --connect-timeout 5 https://ipecho.net/plain 2>/dev/null)
@@ -549,7 +549,7 @@ export const createTraefikInstance = () => {
549549 sleep 8
550550 echo "Traefik migrated to Standalone ✅"
551551 fi
552-
552+
553553 if docker inspect dokploy-traefik > /dev/null 2>&1; then
554554 echo "Traefik already exists ✅"
555555 else
@@ -565,7 +565,7 @@ export const createTraefikInstance = () => {
565565 -p ${ TRAEFIK_SSL_PORT } :${ TRAEFIK_SSL_PORT } \
566566 -p ${ TRAEFIK_PORT } :${ TRAEFIK_PORT } \
567567 -p ${ TRAEFIK_HTTP3_PORT } :${ TRAEFIK_HTTP3_PORT } /udp \
568- traefik:v $TRAEFIK_VERSION
568+ traefik:$TRAEFIK_VERSION
569569 echo "Traefik version $TRAEFIK_VERSION installed ✅"
570570 fi
571571 ` ;
0 commit comments