Changeset 18866
- Timestamp:
- 2009-04-01T19:08:28+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/gsicontrol.sh
r18851 r18866 69 69 function configure-apache { 70 70 test-gsdlhome 71 configfile=$1 ; 72 if [ "x$configfile" = "x" ]; then 73 configfile="$GSDLHOME/llssite.cfg"; 74 fi ; 71 75 echo "Configuring the apache webserver..." ; 72 port=`egrep "^ apache.port" $GSDLHOME/lib/java/build.properties| awk -F= '{print $2}'` ;76 port=`egrep "^portnumber" $configfile | awk -F= '{print $2}'` ; 73 77 echo $port | configure-port ; 74 78 if test -e "$GSDLHOME/apache-httpd/$GSDLOS/conf/httpd.conf" ; then … … 82 86 function configure-web { 83 87 configure-cgi 84 configure-apache 88 configure-apache $1 85 89 } 86 90 … … 129 133 130 134 131 if [ $# != 1] ; then135 if [[ $# < 1 || $# > 2 ]] ; then 132 136 echo "" 133 137 echo " Usage: $0 <command>" … … 139 143 echo " web-graceful" 140 144 echo " configure-admin" 141 echo " configure-web" 145 echo " configure-web [config-filename]" 146 echo " configure-apache [config-filename]" 142 147 echo " configure-port" 143 echo " configure-apache"144 148 echo " configure-cgi" 145 149 echo " test-gsdlhome" … … 150 154 151 155 target=$1 156 configfile=$2 152 157 153 158 case $target in … … 165 170 configure-admin;; 166 171 configure-web) 167 configure-web ;;172 configure-web $configfile;; 168 173 configure-port) 169 174 configure-port;; 170 175 configure-apache) 171 configure-apache ;;176 configure-apache $configfile;; 172 177 configure-cgi) 173 178 configure-cgi;;
Note:
See TracChangeset
for help on using the changeset viewer.