chiark / gitweb /
Automate installation of the CGI at last.
[disorder] / scripts / setup.in
index 3a0c66b801743720de5251e1aa2a04efa9d1a9e5..8c8b3b070ba320df05373e3e984d577153e982ef 100755 (executable)
@@ -437,7 +437,6 @@ Mac )
   launchctl load /Library/LaunchDaemons
   echo "Starting DisOrder server"
   launchctl start uk.org.greenend.rjk.disorder
-  CGIBIN=/Library/WebServer/CGI-Executables
   DOCROOT=/Library/WebServer/Documents
   sever_running=true
   ;;
@@ -465,7 +464,6 @@ FreeBSD )
   esac
   web=$1
   echo "Found $web"
-  CGIBIN=$web/cgi-bin
   DOCROOT=$web/data
   server_running=true
   ;;
@@ -503,13 +501,6 @@ Linux )
       break
     fi
   done
-  echo "Looking for cgi-bin directory"
-  for d in /var/www/cgi-bin /usr/lib/cgi-bin; do
-    if [ -d $d ]; then
-      CGIBIN=$d
-      break
-    fi
-  done
   server_running=true
   ;;
 * )
@@ -529,14 +520,6 @@ else
   ln -s pkgdatadir/static $DOCROOT/disorder
 fi
 
-echo
-if [ -z "$CGIBIN" ]; then
-  echo "Cannot find your web server's cgi-bin directory"
-else
-  echo "Installing CGI in $CGIBIN"
-  install -m 555 cgi/disorder.cgi $CGIBIN/disorder
-fi
-
 if $server_running; then
   first=true
   sleep 5