Changeset 21906
- Timestamp:
- 2010-04-19T14:40:39+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/packages/apache-httpd/install-bindist.sh
r21895 r21906 55 55 # we're the ones putting the apache httpd together, including the envvars file 56 56 # so we can over-write it 57 #if [ -f "$SR/bin/envvars" ]58 #then59 #echo "[Preserving existing envvars settings.]"60 #HAD_ENVVARS=yes61 #else62 #HAD_ENVVARS=no63 #fi57 if [ -f "$SR/bin/envvars" ] 58 then 59 echo "[Preserving existing envvars settings.]" 60 HAD_ENVVARS=yes 61 else 62 HAD_ENVVARS=no 63 fi 64 64 65 65 # Need to run this script from its own directory … … 97 97 chmod u+rwx "$SR/bin/envvars-std" 98 98 99 #if [ $HAD_ENVVARS = no ] 100 #then 101 # cp -p "$SR/bin/envvars-std" "$SR/bin/envvars" 102 # sed -e "s%\*\*APACHE_HOME_OS\*\*%$SR%" "$SR/bin/envvars" > "$SR/bin/envvars.tmp" 103 # mv "$SR/bin/envvars.tmp" > "$SR/bin/envvars" 104 #fi 105 106 cp -p "$SR/bin/envvars-std" "$SR/bin/envvars" 99 if [ $HAD_ENVVARS = no ] 100 then 101 cp -p "$SR/bin/envvars-std" "$SR/bin/envvars" 102 fi 103 # Either way, do a find and replace on APACHE_HOME_OS in the envvars file 107 104 sed -e "s%\*\*APACHE_HOME_OS\*\*%$SR%" "$SR/bin/envvars" > "$SR/bin/envvars.tmp" 108 105 mv "$SR/bin/envvars.tmp" > "$SR/bin/envvars"
Note:
See TracChangeset
for help on using the changeset viewer.