Changeset 20603 for gsdl/trunk/gsicontrol.sh
- Timestamp:
- 2009-09-15T20:08:34+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/gsicontrol.sh
r20342 r20603 58 58 allowfrom="all" 59 59 else 60 allowfrom="127.0.0.1" 60 echo "Enter host (hostname, IP, localhost, 127.0.0.1) to use:" 61 read host ; 62 allowfrom=$host 63 if [ $allowfrom == "localhost" ]; then 64 allowfrom="127.0.0.1" ; 65 fi 61 66 fi 62 67 … … 94 99 echo "Configuring the apache webserver..." ; 95 100 port=`egrep "^portnumber" $configfile | awk -F= '{print $2}'` ; 96 101 97 102 externalaccess=`egrep "^externalaccess" $configfile | awk -F= '{print $2}'` ; 98 103 if [ $externalaccess == "1" ] ; then … … 100 105 else 101 106 externalaccess="no" 102 fi 103 104 echo -e "$port\n$externalaccess" | _configure-port-and-connection ; 107 host=`egrep "^host" $configfile | awk -F= '{print $2}'` ; 108 fi 109 110 echo -e "$port\n$externalaccess\n$host" | _configure-port-and-connection ; 105 111 if test -e "$GSDLHOME/apache-httpd/$GSDLOS/conf/httpd.conf" ; then 106 112 echo $MONITOR_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.