chiark / gitweb /
scripts/setup no longer asks for smtp server
[disorder] / scripts / setup.in
index 3bc0b45ae8d3b56b79b885abee76ba58ab499c12..3a0c66b801743720de5251e1aa2a04efa9d1a9e5 100755 (executable)
@@ -237,12 +237,6 @@ if [ "x$play" = xnetwork ]; then
   fi
 fi
 
-if [ -z "$smtp_server" ]; then
-  echo
-  echo "What host should DisOrder use as an SMTP server?"
-  read -r smtp_server
-fi
-
 if [ -z "$mail_sender" ]; then
   while :; do
     echo
@@ -264,7 +258,7 @@ if [ -z "$register" ]; then
     echo
     echo "Do you want to enable online registration?  (Enter 'y' or 'n')"
     read -r register
-    case $reguser in
+    case $register in
     y | n )
       break
       ;;
@@ -280,7 +274,9 @@ if [ $port = none ]; then
 else
   echo " TCP port to listen on: $port"
 fi
-echo " SMTP Server:           $smtp_server"
+if [ ! -z "$smtp_server" ]; then
+  echo " SMTP Server:           $smtp_server"
+fi
 echo " Sender address:        $mail_sender"
 echo " Online registration:   $register"
 if [ $play = network ]; then
@@ -315,7 +311,9 @@ fi
 if [ $play = network ]; then
   echo "broadcast $mcast_address $mcast_port" >> pkgconfdir/config.new
 fi
-echo "smtp_server $smtp_server" >> pkgconfdir/config.new
+if [ ! -z "$smtp_server" ]; then
+  echo "smtp_server $smtp_server" >> pkgconfdir/config.new
+fi
 echo "mail_sender $mail_sender" >> pkgconfdir/config.new
 
 echo
@@ -536,7 +534,7 @@ if [ -z "$CGIBIN" ]; then
   echo "Cannot find your web server's cgi-bin directory"
 else
   echo "Installing CGI in $CGIBIN"
-  install -m 555 server/disorder.cgi $CGIBIN/disorder
+  install -m 555 cgi/disorder.cgi $CGIBIN/disorder
 fi
 
 if $server_running; then