X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/2e6bdcfa22b04e259111eb3bc3d34c1117d7dc66..6f52f7c5b132c7e63d3afa2b60bb72c5a081d055:/scripts/setup.in diff --git a/scripts/setup.in b/scripts/setup.in index 541949e..3a0c66b 100755 --- a/scripts/setup.in +++ b/scripts/setup.in @@ -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