diff --git a/scripts/init-db.sh b/scripts/init-db.sh
index bf73571d5887506bc78e990230def5828a19d2f5..bcc076a0f005eb9aa966d662de9bceeae3200539 100644
--- a/scripts/init-db.sh
+++ b/scripts/init-db.sh
@@ -30,17 +30,17 @@ runuser -l  monetdb -c 'monetdb start db'
 
 for i in {30..0}; do
   echo 'Testing MonetDB connection ' $i
-	if test_monetdb_connection ; then
-		echo 'Waiting for MonetDB to start...'
-  	sleep 1
+  if test_monetdb_connection ; then
+      echo 'Waiting for MonetDB to start...'
+      sleep 1
   else
-    echo 'MonetDB is running'
-    break
-	fi
+      echo 'MonetDB is running'
+      break
+  fi
 done
 if [ "$i" = 0 ]; then
-	echo >&2 'MonetDB startup failed'
-	exit 1
+    echo >&2 'MonetDB startup failed'
+    exit 1
 fi
 
 mkdir -p /var/log/monetdb