Changeset 23252 for main/trunk/greenstone2/gsicontrol.sh
- Timestamp:
- 2010-10-29T21:30:10+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/gsicontrol.sh
r23134 r23252 56 56 echo "Enter host IP to allow (127.0.0.1 is included by default):" 57 57 read hostIP ; 58 echo "Enter hostname or list of hosts to allow (localhost included by default):" 59 read hosts ; 58 60 echo "Allow external connections [yes/no]:" 59 61 read connection ; … … 61 63 allowfromall="Allow" 62 64 else 63 65 allowfromall="Deny" 64 66 fi 65 67 … … 85 87 | sed "s@\*\*CONNECTPERMISSION\*\*@$allowfromall@g" \ 86 88 | sed "s@\*\*HOST_IP\*\*@$hostIP@g" \ 89 | sed "s@\*\*HOSTS\*\*@$hosts@g" \ 87 90 | sed "s@\*\*COLLECTHOME\*\*@$collecthome@g" \ 88 91 | sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" \ … … 113 116 port=`egrep "^portnumber" $configfile | awk -F= '{print $2}'` ; 114 117 hostIP=`egrep "^hostIP" $configfile | awk -F= '{print $2}'` ; 118 hosts=`egrep "^hosts" $configfile | awk -F= '{print $2}'` ; 115 119 116 120 externalaccess=`egrep "^externalaccess" $configfile | awk -F= '{print $2}'` ; … … 121 125 fi 122 126 123 echo -e "$port\n$hostIP\n$ externalaccess" | configure-port-and-connection ;127 echo -e "$port\n$hostIP\n$hosts\n$externalaccess" | configure-port-and-connection ; 124 128 if test -e "$GSDLHOME/apache-httpd/$GSDLOS/conf/httpd.conf" ; then 125 129 echo $MONITOR_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.