#! /bin/bash echo Content-Type: text/html echo if ps auxww | grep autoconf.py | grep -q master; then t=`echo $QUERY_STRING | sed -e 's/.*t=\([0-9]*\).*/\1/'` if test "x$t" = x; then t=1 else t=`expr $t + 1` fi echo '' echo '
' echo " " echo ' ' echo ' ' echo -n ' Waiting for setting up the configuration...' i=0 while test $i -lt $t; do echo -n '.' i=`expr $i + 1` done echo echo ' ' echo '' else cat /var/www/html/index.html | sed -e '/First/s/First.*step/Congratulations, you successfully went through the Initial Configuration<\/i> step<\/b>/' -e "s/=\"\//=\"http:\/\/$HTTP_HOST\//g" fi