| 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | ## Install.sh -- Install Greenstone
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | # set iscdrom variable to "yes" for a cdrom installation
|
---|
| 7 | iscdrom="no"
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | cmd_cp="cp"
|
---|
| 11 | cmd_cpr="cp -r"
|
---|
| 12 | cmd_chmod="chmod"
|
---|
| 13 | cmd_mkdir="mkdir -p"
|
---|
| 14 | cmd_ln="ln -s"
|
---|
| 15 | cmd_mv="mv"
|
---|
| 16 | cmd_rm="rm -i"
|
---|
| 17 | cmd_rmr="rm -r"
|
---|
| 18 |
|
---|
| 19 | thisdir=`pwd`
|
---|
| 20 | cd ..
|
---|
| 21 | cd_dir=`pwd`
|
---|
| 22 | cd "$thisdir"
|
---|
| 23 |
|
---|
| 24 | # script must be run from within cdrom/unix directory
|
---|
| 25 | if [ ! -f "${thisdir}/Install.sh" ]; then
|
---|
| 26 | echo "$itext1"
|
---|
| 27 | echo "$itext0"
|
---|
| 28 | exit 1
|
---|
| 29 | fi
|
---|
| 30 |
|
---|
| 31 | # check that various important directories are on the cd
|
---|
| 32 | if [ ! -d "${cd_dir}/gsdl" ]; then
|
---|
| 33 | echo
|
---|
| 34 | echo "${itext2}${cd_dir}/gsdl"
|
---|
| 35 | echo "$itext0"
|
---|
| 36 | exit 1
|
---|
| 37 | fi
|
---|
| 38 | if [ ! -d "${cd_dir}/Unix/bin/linux" ]; then
|
---|
| 39 | echo
|
---|
| 40 | echo "${itext2}${cd_dir}/Unix/bin/linux"
|
---|
| 41 | echo "$itext0"
|
---|
| 42 | exit 1
|
---|
| 43 | fi
|
---|
| 44 |
|
---|
| 45 | # install to /usr/local by default if user is "root", otherwise
|
---|
| 46 | # default to users home directory
|
---|
| 47 | gsdlos=`uname | tr A-Z a-z`
|
---|
| 48 | if [ "$gsdlos" = "linux" ]; then
|
---|
| 49 | logname=`whoami`
|
---|
| 50 | else
|
---|
| 51 | logname=""
|
---|
| 52 | fi
|
---|
| 53 | if [ "$logname" = "" ]; then
|
---|
| 54 | logname=`logname`
|
---|
| 55 | fi
|
---|
| 56 | gsdlhome="/home/${logname}"
|
---|
| 57 | if [ "$logname" = "root" ]; then
|
---|
| 58 | gsdlhome="/usr/local"
|
---|
| 59 | fi
|
---|
| 60 |
|
---|
| 61 |
|
---|
| 62 | itext0="Greenstone was not installed"
|
---|
| 63 |
|
---|
| 64 | itext1="Install.sh must be run from the directory in which it resides"
|
---|
| 65 |
|
---|
| 66 | itext2="ERROR: Could not locate "
|
---|
| 67 |
|
---|
| 68 | itext3="This script will install Greenstone on your system. You may want
|
---|
| 69 | to skim through the Install.pdf document that resides in the docs
|
---|
| 70 | directory on this cd-rom before continuing with the installation.
|
---|
| 71 |
|
---|
| 72 | Note that when prompted for input, hitting \"enter\" will select
|
---|
| 73 | the default (given in square brackets [] at the end of each question).
|
---|
| 74 | If you're unsure which option to select, use the default.
|
---|
| 75 |
|
---|
| 76 | Note also that Install.sh prints out information on any commands
|
---|
| 77 | it runs on your system in the form \"--> Install.sh: [command]\".
|
---|
| 78 |
|
---|
| 79 | It is assumed throughout this installation procedure that you
|
---|
| 80 | have a webserver installed on your system.
|
---|
| 81 |
|
---|
| 82 | For later reference the output of this install script will be
|
---|
| 83 | recorded in a file called INSTALL_RECORD in the directory into
|
---|
| 84 | which you choose to install Greenstone.
|
---|
| 85 |
|
---|
| 86 | Continue? [y]"
|
---|
| 87 |
|
---|
| 88 | itext4="
|
---|
| 89 | Which directory should Greenstone be installed to?
|
---|
| 90 | Make sure that this directory is on a partition with sufficient
|
---|
| 91 | free disk space for the installation options you intend selecting."
|
---|
| 92 |
|
---|
| 93 | itext5="
|
---|
| 94 | * A linux binary installation requires approximately
|
---|
| 95 | 40Mb."
|
---|
| 96 |
|
---|
| 97 | itext6="
|
---|
| 98 | * Compiling Greenstone from source code requires
|
---|
| 99 | approximately 155Mb.
|
---|
| 100 | * Optional Greenstone demonstration collections may use up
|
---|
| 101 | to a further 200Mb (you'll be told the size of each individual
|
---|
| 102 | collection before you install it).
|
---|
| 103 | * Online documentation requires a further 4Mb.
|
---|
| 104 | * Enabling Greenstone's \"CD exporting\" function requires a
|
---|
| 105 | further 24Mb.
|
---|
| 106 | Enter directory to install Greenstone into. A gsdl directory
|
---|
| 107 | will be created in this directory. [${gsdlhome}]"
|
---|
| 108 |
|
---|
| 109 | itext34="
|
---|
| 110 | Enter existing cgi executable directory [/usr/local/apache/cgi-bin]"
|
---|
| 111 |
|
---|
| 112 |
|
---|
| 113 | # get gsdlhome
|
---|
| 114 | echo "$itext3"
|
---|
| 115 | printf "%s" "> "
|
---|
| 116 | read ans
|
---|
| 117 | log="${log}${itext3}
|
---|
| 118 | > $ans
|
---|
| 119 | "
|
---|
| 120 | if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
|
---|
| 121 | echo "$itext0"
|
---|
| 122 | exit 0
|
---|
| 123 | fi
|
---|
| 124 |
|
---|
| 125 | msg="$itext4"
|
---|
| 126 | if [ "$gsdlos" = "linux" ]; then
|
---|
| 127 | msg="${msg}$itext5"
|
---|
| 128 | fi
|
---|
| 129 | msg="${msg}$itext6"
|
---|
| 130 | echo "$msg"
|
---|
| 131 | printf "%s" "> "
|
---|
| 132 | read ans
|
---|
| 133 | log="${log}${msg}
|
---|
| 134 | > $ans
|
---|
| 135 | "
|
---|
| 136 | if [ "$ans" != "" ]; then
|
---|
| 137 | gsdlhome="$ans"
|
---|
| 138 | fi
|
---|
| 139 |
|
---|
| 140 | itext7="
|
---|
| 141 | Warning: The ${gsdlhome} directory does not exist.
|
---|
| 142 | Create it? [y]"
|
---|
| 143 |
|
---|
| 144 | itext8="ERROR: failed to create $gsdlhome directory"
|
---|
| 145 |
|
---|
| 146 | if [ ! -d "$gsdlhome" ]; then
|
---|
| 147 | echo "$itext7"
|
---|
| 148 | printf "%s" "> "
|
---|
| 149 | read ans
|
---|
| 150 | log="${log}${itext7}
|
---|
| 151 | > $ans
|
---|
| 152 | "
|
---|
| 153 | if [ "$ans" = "" ]; then
|
---|
| 154 | ans="y"
|
---|
| 155 | fi
|
---|
| 156 | if [ "$ans" = "y" ]; then
|
---|
| 157 | msg="--> Install.sh: [$cmd_mkdir \"$gsdlhome\"]"
|
---|
| 158 | echo "$msg"
|
---|
| 159 | log="${log}${msg}
|
---|
| 160 | "
|
---|
| 161 | $cmd_mkdir "$gsdlhome"
|
---|
| 162 | if [ ! -d "$gsdlhome" ]; then
|
---|
| 163 | echo "$itext8"
|
---|
| 164 | echo "$itext0"
|
---|
| 165 | exit 1
|
---|
| 166 | fi
|
---|
| 167 | else
|
---|
| 168 | echo "$itext0"
|
---|
| 169 | exit 0
|
---|
| 170 | fi
|
---|
| 171 | fi
|
---|
| 172 |
|
---|
| 173 | # from now on $gsdlhome includes the "/gsdl"
|
---|
| 174 | gsdlhome="${gsdlhome}/gsdl"
|
---|
| 175 |
|
---|
| 176 | itext9="
|
---|
| 177 | If this installation fails or is cancelled, run the uninstall
|
---|
| 178 | script (${gsdlhome}/Uninstall.sh) to clean up the partial
|
---|
| 179 | installation.
|
---|
| 180 | Continue? [y]"
|
---|
| 181 |
|
---|
| 182 | itext10="
|
---|
| 183 | Installing Greenstone directory structure to ${gsdlhome}"
|
---|
| 184 |
|
---|
| 185 | itext11="
|
---|
| 186 | Would you like to install the Greenstone documentation to your
|
---|
| 187 | hard drive? The docs will use about 4Mb of space. If you choose
|
---|
| 188 | not to install them you can still access them from within the
|
---|
| 189 | docs directory of the cd-rom) [y]"
|
---|
| 190 |
|
---|
| 191 | itext12="
|
---|
| 192 | Would you like to install support for Greenstone's \"CD exporting\"
|
---|
| 193 | function? This function allows you to export a Greenstone collection
|
---|
| 194 | in a form suitable for writing to a self-installing Windows cd-rom.
|
---|
| 195 | This package will use approximately 23Mb of disk space [n]"
|
---|
| 196 |
|
---|
| 197 | itext13="
|
---|
| 198 | The Greenstone demonstration collection has been installed. Would you
|
---|
| 199 | like to install any other collections from the installation cd-rom? [y]
|
---|
| 200 | (note that only the built indexes will be installed for these
|
---|
| 201 | collections - if you require the original source documents you may
|
---|
| 202 | manually copy them from the \"collect\" directory of the cd-rom)"
|
---|
| 203 |
|
---|
| 204 | itext14="
|
---|
| 205 | Install the Greenstone mailing list archive (gsarch) - 3Mb? [y]"
|
---|
| 206 |
|
---|
| 207 | itext15="
|
---|
| 208 | Install the MSWord/PDF/RTF/Postscript demonstration collection (wordpdf) - 4Mb? [y]"
|
---|
| 209 |
|
---|
| 210 | itext16="
|
---|
| 211 | Install the Chinese demonstration collection (chinese) - 6Mb? [y]"
|
---|
| 212 |
|
---|
| 213 | itext17="
|
---|
| 214 | Install the Humanity Development Library subset (hdlsub) - 130 Mb? [y]"
|
---|
| 215 |
|
---|
| 216 | itext18="Setting permissions ..."
|
---|
| 217 |
|
---|
| 218 | itext19="
|
---|
| 219 | In order for end-user collection building to be enabled the
|
---|
| 220 | Greenstone cgi program must be able to write to the
|
---|
| 221 | ${gsdlhome}/collect and ${gsdlhome}/tmp directories.
|
---|
| 222 | On most systems this means they must be globally writable.
|
---|
| 223 | Make these directories globally writable? [y]"
|
---|
| 224 |
|
---|
| 225 | itext20="
|
---|
| 226 | You may either install pre-compiled, statically linked linux [b]inaries
|
---|
| 227 | (i386 only) or install and [c]ompile the Greenstone source code"
|
---|
| 228 |
|
---|
| 229 | itext21="Enter \"[b]\" or \"c\""
|
---|
| 230 |
|
---|
| 231 | itext22="Installing linux binaries"
|
---|
| 232 |
|
---|
| 233 | itext23="Installing source code"
|
---|
| 234 |
|
---|
| 235 | itext24="configuring ..."
|
---|
| 236 |
|
---|
| 237 | itext25="compiling ..."
|
---|
| 238 |
|
---|
| 239 | itext26="installing ..."
|
---|
| 240 |
|
---|
| 241 | itext27="ERROR: Compilation failed"
|
---|
| 242 |
|
---|
| 243 | itext28="
|
---|
| 244 |
|
---|
| 245 | Greenstone needs a valid cgi executable directory (normally called
|
---|
| 246 | cgi-bin on unix systems) from which to run.
|
---|
| 247 | This may be either:
|
---|
| 248 | 1. The default Greenstone cgi-bin directory (${gsdlhome}/cgi-bin).
|
---|
| 249 | If you use the Greenstone default you will need to configure
|
---|
| 250 | your webserver to treat this directory as a cgi executable
|
---|
| 251 | directory. For the Apache webserver you use the ScriptAlias
|
---|
| 252 | directive to do this (details of how to configure your webserver
|
---|
| 253 | will be displayed at the end of this installation procedure)."
|
---|
| 254 |
|
---|
| 255 | itext29=" Note that you will probably need help from your system
|
---|
| 256 | administrator to reconfigure your webserver."
|
---|
| 257 |
|
---|
| 258 | itext30=" 2. An existing cgi-bin directory. Normally a cgi-bin directory
|
---|
| 259 | is created when your webserver is installed. Typically, this
|
---|
| 260 | might be /home/httpd/cgi-bin, or /usr/local/apache/cgi-bin, or
|
---|
| 261 | /var/lib/apache/cgi-bin."
|
---|
| 262 |
|
---|
| 263 | itext31=" Many systems also allow individual users to have their own
|
---|
| 264 | cgi-bin in /home/username/public_html/cgi-bin."
|
---|
| 265 |
|
---|
| 266 | itext32="Enter \"[1]\" or \"2\""
|
---|
| 267 |
|
---|
| 268 | itext33="
|
---|
| 269 | Don't forget to configure your webserver to treat ${gsdlhome}/cgi-bin
|
---|
| 270 | as a cgi executable directory. Don't worry, you'll be
|
---|
| 271 | reminded of this again at the end of the installation
|
---|
| 272 | procedure"
|
---|
| 273 |
|
---|
| 274 | itext37="Run the uninstall script (${gsdlhome}/Uninstall.sh)
|
---|
| 275 | to clean up the partial installation."
|
---|
| 276 |
|
---|
| 277 | itext42="
|
---|
| 278 |
|
---|
| 279 | In order for Greenstone to run, the $gsdlhome
|
---|
| 280 | directory and all it contains must be accessible from the web.
|
---|
| 281 | To make this happen you may either:
|
---|
| 282 | 1. Configure your webserver so that $gsdlhome
|
---|
| 283 | is itself accessible from the web."
|
---|
| 284 |
|
---|
| 285 | itext43=" 2. Provide an existing web accessible directory from which
|
---|
| 286 | a symbolic link (ln -s) will be made to $gsdlhome.
|
---|
| 287 | When your server was installed a web accessible directory
|
---|
| 288 | will have been created (the Apache webserver uses the
|
---|
| 289 | DocumentRoot directive to define this directory). Typically
|
---|
| 290 | this directory might be /home/httpd/html, or /usr/local/apache/htdocs,
|
---|
| 291 | or /var/lib/apache/htdocs."
|
---|
| 292 |
|
---|
| 293 | itext44=" Many systems also allow individual users to have their own
|
---|
| 294 | web accessible directory in /home/username/public_html."
|
---|
| 295 |
|
---|
| 296 | itext45=" Note that your web server will need to be configured to allow
|
---|
| 297 | symbolic links from within this directory. For the Apache
|
---|
| 298 | server that means this directory must be configured with
|
---|
| 299 | the SymLinksIfOwnerMatch or FollowSymLinks option (most Apache
|
---|
| 300 | installations are configured this way by default)."
|
---|
| 301 |
|
---|
| 302 | itext46="
|
---|
| 303 | Don't forget to configure your webserver to make $gsdlhome
|
---|
| 304 | accessible from the web. You'll be reminded of this again
|
---|
| 305 | at the end of this installation procedure."
|
---|
| 306 |
|
---|
| 307 |
|
---|
| 308 | msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}\"]"
|
---|
| 309 | echo "$msg"
|
---|
| 310 | log="${log}${msg}
|
---|
| 311 | "
|
---|
| 312 | $cmd_mkdir "$gsdlhome"
|
---|
| 313 | if [ ! -d "$gsdlhome" ]; then
|
---|
| 314 | echo "$itext8"
|
---|
| 315 | echo "$itext0"
|
---|
| 316 | exit 1
|
---|
| 317 | fi
|
---|
| 318 | # set permissions on gsdlhome directory
|
---|
| 319 | msg="--> Install.sh: [$cmd_chmod u+rwx \"${gsdlhome}\"]"
|
---|
| 320 | echo "$msg"
|
---|
| 321 | log="${log}${msg}
|
---|
| 322 | "
|
---|
| 323 | $cmd_chmod u+rwx "$gsdlhome"
|
---|
| 324 |
|
---|
| 325 | # create initial Uninstall.sh
|
---|
| 326 | cd "$gsdlhome"
|
---|
| 327 | echo "#!/bin/sh" > Uninstall.sh
|
---|
| 328 | echo "" >> Uninstall.sh
|
---|
| 329 | echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
|
---|
| 330 | echo "read ans" >> Uninstall.sh
|
---|
| 331 | echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
|
---|
| 332 | echo " $cmd_chmod -R u+rwx \"$gsdlhome\"" >> Uninstall.sh
|
---|
| 333 | echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
|
---|
| 334 | echo "fi" >> Uninstall.sh
|
---|
| 335 | $cmd_chmod u+x Uninstall.sh
|
---|
| 336 | cd "$thisdir"
|
---|
| 337 |
|
---|
| 338 | # create initial INSTALL_RECORD
|
---|
| 339 | echo "$log" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 340 |
|
---|
| 341 | echo "$itext9"
|
---|
| 342 | echo "$itext9" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 343 | printf "%s" "> "
|
---|
| 344 | read ans
|
---|
| 345 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 346 | if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
|
---|
| 347 | msg="$itext0"
|
---|
| 348 | echo "$msg"
|
---|
| 349 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 350 | exit 0
|
---|
| 351 | fi
|
---|
| 352 |
|
---|
| 353 | echo "$itext10"
|
---|
| 354 | echo "$itext10" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 355 |
|
---|
| 356 | # copy gsdl directory across
|
---|
| 357 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/gsdl/\"* \"$gsdlhome\"]"
|
---|
| 358 | echo "$msg"
|
---|
| 359 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 360 | $cmd_cpr "${cd_dir}/gsdl/"* "$gsdlhome"
|
---|
| 361 |
|
---|
| 362 | # copy setup shell scripts across too
|
---|
| 363 | msg="--> Install.sh: [$cmd_cp \"${cd_dir}/src/Unix/setup.\"* \"$gsdlhome\"]"
|
---|
| 364 | echo "$msg"
|
---|
| 365 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 366 | $cmd_cp "${cd_dir}/src/Unix/setup."* "$gsdlhome"
|
---|
| 367 |
|
---|
| 368 | # make sure we have a tmp directory
|
---|
| 369 | if [ ! -d "$gsdlhome/tmp" ]; then
|
---|
| 370 | msg="--> Install.sh: [$cmd_mkdir \"$gsdlhome/tmp\"]"
|
---|
| 371 | echo "$msg"
|
---|
| 372 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 373 | $cmd_mkdir "${gsdlhome}/tmp"
|
---|
| 374 | fi
|
---|
| 375 |
|
---|
| 376 | # make collect directory writable so we can install collections
|
---|
| 377 | msg="--> Install.sh: [$cmd_chmod u+rwx \"$gsdlhome/collect\"]"
|
---|
| 378 | echo "$msg"
|
---|
| 379 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 380 | $cmd_chmod u+rwx "$gsdlhome/collect"
|
---|
| 381 |
|
---|
| 382 | if [ $iscdrom = "yes" ]; then
|
---|
| 383 | # do we want docs directory?
|
---|
| 384 | echo "$itext11"
|
---|
| 385 | echo "$itext11" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 386 | printf "%s" "> "
|
---|
| 387 | read ans
|
---|
| 388 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 389 | if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
|
---|
| 390 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/docs\" \"$gsdlhome\"]"
|
---|
| 391 | echo "$msg"
|
---|
| 392 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 393 | $cmd_cpr "${cd_dir}/docs" "$gsdlhome"
|
---|
| 394 | fi
|
---|
| 395 |
|
---|
| 396 | # do we want the "CD exporting" stuff?
|
---|
| 397 | echo "$itext12"
|
---|
| 398 | echo "$itext12" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 399 | printf "%s" "> "
|
---|
| 400 | read ans
|
---|
| 401 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 402 | if [ "$ans" = "Y" ] || [ "$ans" = "y" ]; then
|
---|
| 403 | msg="--> Install.sh: [$cmd_chmod u+rw \"${gsdlhome}/bin\"]"
|
---|
| 404 | echo "$msg"
|
---|
| 405 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 406 | $cmd_chmod u+rw "${gsdlhome}/bin"
|
---|
| 407 |
|
---|
| 408 | msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}/bin/windows\"]"
|
---|
| 409 | echo "$msg"
|
---|
| 410 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 411 | $cmd_mkdir "${gsdlhome}/bin/windows"
|
---|
| 412 |
|
---|
| 413 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/netscape\" \"${gsdlhome}/bin/windows\"]"
|
---|
| 414 | echo "$msg"
|
---|
| 415 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 416 | $cmd_cpr "${cd_dir}/Windows/bin/windows/netscape" "${gsdlhome}/bin/windows"
|
---|
| 417 |
|
---|
| 418 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/Win32s\" \"${gsdlhome}/bin/windows\"]"
|
---|
| 419 | echo "$msg"
|
---|
| 420 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 421 | $cmd_cpr "${cd_dir}/Windows/bin/windows/Win32s" "${gsdlhome}/bin/windows"
|
---|
| 422 |
|
---|
| 423 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/net16\" \"${gsdlhome}/bin/windows\"]"
|
---|
| 424 | echo "$msg"
|
---|
| 425 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 426 | $cmd_cpr "${cd_dir}/Windows/bin/windows/net16" "${gsdlhome}/bin/windows"
|
---|
| 427 |
|
---|
| 428 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/net32\" \"${gsdlhome}/bin/windows\"]"
|
---|
| 429 | echo "$msg"
|
---|
| 430 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 431 | $cmd_cpr "${cd_dir}/Windows/bin/windows/net32" "${gsdlhome}/bin/windows"
|
---|
| 432 |
|
---|
| 433 | msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/server.exe\" \"${gsdlhome}/bin/windows\"]"
|
---|
| 434 | echo "$msg"
|
---|
| 435 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 436 | $cmd_cp "${cd_dir}/Windows/bin/windows/server.exe" "${gsdlhome}/bin/windows"
|
---|
| 437 |
|
---|
| 438 | msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/gssetup.exe\" \"${gsdlhome}/bin/windows\"]"
|
---|
| 439 | echo "$msg"
|
---|
| 440 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 441 | $cmd_cp "${cd_dir}/Windows/bin/windows/gssetup.exe" "${gsdlhome}/bin/windows"
|
---|
| 442 |
|
---|
| 443 | msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/setpw.exe\" \"${gsdlhome}/bin/windows\"]"
|
---|
| 444 | echo "$msg"
|
---|
| 445 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 446 | $cmd_cp "${cd_dir}/Windows/bin/windows/setpw.exe" "${gsdlhome}/bin/windows"
|
---|
| 447 |
|
---|
| 448 | msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/Setup.exe\" \"${gsdlhome}/bin/windows\"]"
|
---|
| 449 | echo "$msg"
|
---|
| 450 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 451 | $cmd_cp "${cd_dir}/Windows/bin/windows/Setup.exe" "${gsdlhome}/bin/windows"
|
---|
| 452 | fi
|
---|
| 453 |
|
---|
| 454 |
|
---|
| 455 | # which collections do we want
|
---|
| 456 | cd "${cd_dir}/collect"
|
---|
| 457 | echo "$itext13"
|
---|
| 458 | echo "$itext13" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 459 | printf "%s" "> "
|
---|
| 460 | read ans
|
---|
| 461 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 462 | if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
|
---|
| 463 |
|
---|
| 464 | # gsarch
|
---|
| 465 | echo "$itext14"
|
---|
| 466 | echo "$itext14" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 467 | printf "%s" "> "
|
---|
| 468 | read ans
|
---|
| 469 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 470 | if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
|
---|
| 471 |
|
---|
| 472 | msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}/collect/gsarch\"]"
|
---|
| 473 | echo "$msg"
|
---|
| 474 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 475 | $cmd_mkdir "${gsdlhome}/collect/gsarch"
|
---|
| 476 |
|
---|
| 477 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/gsarch/etc\" \"${gsdlhome}/collect/gsarch\"]"
|
---|
| 478 | echo "$msg"
|
---|
| 479 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 480 | $cmd_cpr "${cd_dir}/collect/gsarch/etc" "${gsdlhome}/collect/gsarch"
|
---|
| 481 |
|
---|
| 482 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/gsarch/images\" \"${gsdlhome}/collect/gsarch\"]"
|
---|
| 483 | echo "$msg"
|
---|
| 484 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 485 | $cmd_cpr "${cd_dir}/collect/gsarch/images" "${gsdlhome}/collect/gsarch"
|
---|
| 486 |
|
---|
| 487 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/gsarch/index\" \"${gsdlhome}/collect/gsarch\"]"
|
---|
| 488 | echo "$msg"
|
---|
| 489 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 490 | $cmd_cpr "${cd_dir}/collect/gsarch/index" "${gsdlhome}/collect/gsarch"
|
---|
| 491 | fi
|
---|
| 492 |
|
---|
| 493 | # wordpdf
|
---|
| 494 | echo "$itext15"
|
---|
| 495 | echo "$itext15" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 496 | printf "%s" "> "
|
---|
| 497 | read ans
|
---|
| 498 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 499 | if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
|
---|
| 500 |
|
---|
| 501 | msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}/collect/wordpdf\"]"
|
---|
| 502 | echo "$msg"
|
---|
| 503 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 504 | $cmd_mkdir "${gsdlhome}/collect/wordpdf"
|
---|
| 505 |
|
---|
| 506 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/wordpdf/etc\" \"${gsdlhome}/collect/wordpdf\"]"
|
---|
| 507 | echo "$msg"
|
---|
| 508 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 509 | $cmd_cpr "${cd_dir}/collect/wordpdf/etc" "${gsdlhome}/collect/wordpdf"
|
---|
| 510 |
|
---|
| 511 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/wordpdf/images\" \"${gsdlhome}/collect/wordpdf\"]"
|
---|
| 512 | echo "$msg"
|
---|
| 513 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 514 | $cmd_cpr "${cd_dir}/collect/wordpdf/images" "${gsdlhome}/collect/wordpdf"
|
---|
| 515 |
|
---|
| 516 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/wordpdf/index\" \"${gsdlhome}/collect/wordpdf\"]"
|
---|
| 517 | echo "$msg"
|
---|
| 518 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 519 | $cmd_cpr "${cd_dir}/collect/wordpdf/index" "${gsdlhome}/collect/wordpdf"
|
---|
| 520 | fi
|
---|
| 521 |
|
---|
| 522 | # chinese
|
---|
| 523 | echo "$itext16"
|
---|
| 524 | echo "$itext16" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 525 | printf "%s" "> "
|
---|
| 526 | read ans
|
---|
| 527 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 528 | if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
|
---|
| 529 |
|
---|
| 530 | msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}/collect/chinese\"]"
|
---|
| 531 | echo "$msg"
|
---|
| 532 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 533 | $cmd_mkdir "${gsdlhome}/collect/chinese"
|
---|
| 534 |
|
---|
| 535 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/chinese/etc\" \"${gsdlhome}/collect/chinese\"]"
|
---|
| 536 | echo "$msg"
|
---|
| 537 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 538 | $cmd_cpr "${cd_dir}/collect/chinese/etc" "${gsdlhome}/collect/chinese"
|
---|
| 539 |
|
---|
| 540 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/chinese/images\" \"${gsdlhome}/collect/chinese\"]"
|
---|
| 541 | echo "$msg"
|
---|
| 542 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 543 | $cmd_cpr "${cd_dir}/collect/chinese/images" "${gsdlhome}/collect/chinese"
|
---|
| 544 |
|
---|
| 545 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/chinese/index\" \"${gsdlhome}/collect/chinese\"]"
|
---|
| 546 | echo "$msg"
|
---|
| 547 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 548 | $cmd_cpr "${cd_dir}/collect/chinese/index" "${gsdlhome}/collect/chinese"
|
---|
| 549 | fi
|
---|
| 550 |
|
---|
| 551 | # hdlsub
|
---|
| 552 | echo "$itext17"
|
---|
| 553 | echo "$itext17" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 554 | printf "%s" "> "
|
---|
| 555 | read ans
|
---|
| 556 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 557 | if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
|
---|
| 558 |
|
---|
| 559 | msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}/collect/hdlsub\"]"
|
---|
| 560 | echo "$msg"
|
---|
| 561 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 562 | $cmd_mkdir "${gsdlhome}/collect/hdlsub"
|
---|
| 563 |
|
---|
| 564 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/hdlsub/etc\" \"${gsdlhome}/collect/hdlsub\"]"
|
---|
| 565 | echo "$msg"
|
---|
| 566 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 567 | $cmd_cpr "${cd_dir}/collect/hdlsub/etc" "${gsdlhome}/collect/hdlsub"
|
---|
| 568 |
|
---|
| 569 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/hdlsub/images\" \"${gsdlhome}/collect/hdlsub\"]"
|
---|
| 570 | echo "$msg"
|
---|
| 571 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 572 | $cmd_cpr "${cd_dir}/collect/hdlsub/images" "${gsdlhome}/collect/hdlsub"
|
---|
| 573 |
|
---|
| 574 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/hdlsub/index\" \"${gsdlhome}/collect/hdlsub\"]"
|
---|
| 575 | echo "$msg"
|
---|
| 576 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 577 | $cmd_cpr "${cd_dir}/collect/hdlsub/index" "${gsdlhome}/collect/hdlsub"
|
---|
| 578 | fi
|
---|
| 579 | fi
|
---|
| 580 | fi
|
---|
| 581 |
|
---|
| 582 | # set permissions
|
---|
| 583 | msg="
|
---|
| 584 | $itext18
|
---|
| 585 | --> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]
|
---|
| 586 | --> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/script/\"*]"
|
---|
| 587 | echo "$msg"
|
---|
| 588 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 589 | $cmd_chmod -R u+rw "$gsdlhome"
|
---|
| 590 | $cmd_chmod a+x "${gsdlhome}/bin/script/"*
|
---|
| 591 |
|
---|
| 592 | # certain files in gsdl/etc need to be globally writable
|
---|
| 593 | msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/errout.txt\"]"
|
---|
| 594 | echo "$msg"
|
---|
| 595 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 596 | $cmd_chmod a+w "$gsdlhome/etc/errout.txt"
|
---|
| 597 | msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/initout.txt\"]"
|
---|
| 598 | echo "$msg"
|
---|
| 599 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 600 | $cmd_chmod a+w "$gsdlhome/etc/initout.txt"
|
---|
| 601 | msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/key.db\"]"
|
---|
| 602 | echo "$msg"
|
---|
| 603 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 604 | $cmd_chmod a+w "$gsdlhome/etc/key.db"
|
---|
| 605 | msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/users.db\"]"
|
---|
| 606 | echo "$msg"
|
---|
| 607 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 608 | $cmd_chmod a+w "$gsdlhome/etc/users.db"
|
---|
| 609 | msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/main.cfg\"]"
|
---|
| 610 | echo "$msg"
|
---|
| 611 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 612 | $cmd_chmod a+w "$gsdlhome/etc/main.cfg"
|
---|
| 613 | msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/history.db\"]"
|
---|
| 614 | echo "$msg"
|
---|
| 615 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 616 | $cmd_chmod a+w "$gsdlhome/etc/history.db"
|
---|
| 617 | msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/usage.txt\"]"
|
---|
| 618 | echo "$msg"
|
---|
| 619 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 620 | $cmd_chmod a+w "$gsdlhome/etc/usage.txt"
|
---|
| 621 |
|
---|
| 622 |
|
---|
| 623 | # should gsdl/collect and gsdl/tmp be globally writable?
|
---|
| 624 | echo "$itext19"
|
---|
| 625 | echo "$itext19" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 626 | printf "%s" "> "
|
---|
| 627 | read ans
|
---|
| 628 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 629 | if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
|
---|
| 630 | msg="--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/collect\"]"
|
---|
| 631 | echo "$msg"
|
---|
| 632 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 633 | $cmd_chmod -R a+w "$gsdlhome/collect"
|
---|
| 634 | msg="--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/tmp\"]"
|
---|
| 635 | echo "$msg"
|
---|
| 636 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 637 | $cmd_chmod -R a+w "$gsdlhome/tmp"
|
---|
| 638 | fi
|
---|
| 639 |
|
---|
| 640 | # binaries or source code?
|
---|
| 641 | compile="yes"
|
---|
| 642 | if [ "$gsdlos" = "linux" ]; then
|
---|
| 643 | echo "$itext20"
|
---|
| 644 | echo "$itext20" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 645 |
|
---|
| 646 | found=no
|
---|
| 647 | while [ "$found" = "no" ]; do
|
---|
| 648 | echo "$itext21"
|
---|
| 649 | echo "$itext21" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 650 | printf "%s" "> "
|
---|
| 651 | read ans
|
---|
| 652 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 653 | if [ "$ans" = "" ] || [ "$ans" = "b" ]; then
|
---|
| 654 | compile="no"
|
---|
| 655 | # install binaries
|
---|
| 656 | msg="
|
---|
| 657 | $itext22
|
---|
| 658 | --> Install.sh: [$cmd_cpr \"${cd_dir}/Unix/bin/linux\" \"${gsdlhome}/bin\"]"
|
---|
| 659 | echo "$msg"
|
---|
| 660 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 661 | $cmd_cpr "${cd_dir}/Unix/bin/linux" "${gsdlhome}/bin"
|
---|
| 662 | msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/linux/\"*]"
|
---|
| 663 | echo "$msg"
|
---|
| 664 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 665 | $cmd_chmod a+x "${gsdlhome}/bin/linux/"*
|
---|
| 666 | msg="--> Install.sh: [$cmd_chmod -R u+rw \"${gsdlhome}/bin/linux\"]"
|
---|
| 667 | echo "$msg"
|
---|
| 668 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 669 | $cmd_chmod -R u+rw "${gsdlhome}/bin/linux"
|
---|
| 670 |
|
---|
| 671 | # move library executable to cgi-bin
|
---|
| 672 | msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/library\" \"${gsdlhome}/cgi-bin\"]"
|
---|
| 673 | echo "$msg"
|
---|
| 674 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 675 | $cmd_mv "${gsdlhome}/bin/linux/library" "${gsdlhome}/cgi-bin"
|
---|
| 676 |
|
---|
| 677 | # move XML.tgz to perllib/cpan and untar it
|
---|
| 678 | msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/XML.tgz\" \"${gsdlhome}/perllib/cpan\"]"
|
---|
| 679 | echo "$msg"
|
---|
| 680 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 681 | $cmd_mv "${gsdlhome}/bin/linux/XML.tgz" "${gsdlhome}/perllib/cpan"
|
---|
| 682 | cd "${gsdlhome}/perllib/cpan"
|
---|
| 683 | msg="--> Install.sh: [gzip -dc XML.tgz | tar -xf -]"
|
---|
| 684 | echo "$msg"
|
---|
| 685 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 686 | gzip -dc XML.tgz | tar -xf -
|
---|
| 687 |
|
---|
| 688 | found="yes"
|
---|
| 689 | elif [ "$ans" = "c" ]; then
|
---|
| 690 | found="yes"
|
---|
| 691 | fi
|
---|
| 692 | done
|
---|
| 693 | fi
|
---|
| 694 |
|
---|
| 695 | if [ "$compile" = "yes" ]; then
|
---|
| 696 | # install source
|
---|
| 697 | msg="
|
---|
| 698 | $itext23
|
---|
| 699 | --> Install.sh: [$cmd_cpr \"${cd_dir}/src/lib\" \"$gsdlhome\"]"
|
---|
| 700 | echo "$msg"
|
---|
| 701 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 702 | $cmd_cpr "${cd_dir}/src/lib" "$gsdlhome"
|
---|
| 703 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/packages\" \"$gsdlhome\"]"
|
---|
| 704 | echo "$msg"
|
---|
| 705 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 706 | $cmd_cpr "${cd_dir}/src/packages" "$gsdlhome"
|
---|
| 707 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/src\" \"$gsdlhome\"]"
|
---|
| 708 | echo "$msg"
|
---|
| 709 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 710 | $cmd_cpr "${cd_dir}/src/src" "$gsdlhome"
|
---|
| 711 | msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/Unix/\"* \"$gsdlhome\"]"
|
---|
| 712 | echo "$msg"
|
---|
| 713 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 714 | $cmd_cpr "${cd_dir}/src/Unix/"* "$gsdlhome"
|
---|
| 715 | msg="--> Install.sh: [$cmd_cp \"${cd_dir}/src/Install.txt\" \"$gsdlhome\"]"
|
---|
| 716 | echo "$msg"
|
---|
| 717 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 718 | $cmd_cp "${cd_dir}/src/Install.txt" "$gsdlhome"
|
---|
| 719 | msg="--> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]"
|
---|
| 720 | echo "$msg"
|
---|
| 721 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 722 | $cmd_chmod -R u+rw "$gsdlhome"
|
---|
| 723 | msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/configure\"]"
|
---|
| 724 | echo "$msg"
|
---|
| 725 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 726 | $cmd_chmod a+x "${gsdlhome}/configure"
|
---|
| 727 | msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/packages/yaz/configure\"]"
|
---|
| 728 | echo "$msg"
|
---|
| 729 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 730 | $cmd_chmod a+x "${gsdlhome}/packages/yaz/configure"
|
---|
| 731 |
|
---|
| 732 | # compile it
|
---|
| 733 | msg="--> Install.sh: [cd $gsdlhome]"
|
---|
| 734 | echo "$msg"
|
---|
| 735 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 736 | cd "$gsdlhome"
|
---|
| 737 | msg="$itext24
|
---|
| 738 |
|
---|
| 739 | --> Install.sh: [./configure]"
|
---|
| 740 | echo "$msg"
|
---|
| 741 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 742 | ./configure
|
---|
| 743 | msg="$itext25
|
---|
| 744 |
|
---|
| 745 | --> Install.sh: [make]"
|
---|
| 746 | echo "$msg"
|
---|
| 747 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 748 | make
|
---|
| 749 | msg="$itext26
|
---|
| 750 |
|
---|
| 751 | --> Install.sh: [make install]"
|
---|
| 752 | echo "$msg"
|
---|
| 753 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 754 | make install
|
---|
| 755 | msg="--> Install.sh: [cd $thisdir]"
|
---|
| 756 | echo "$msg"
|
---|
| 757 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 758 | cd "$thisdir"
|
---|
| 759 |
|
---|
| 760 | # check that things compiled ok
|
---|
| 761 | if [ ! -f "${gsdlhome}/cgi-bin/library" ]; then
|
---|
| 762 | msg="$itext27
|
---|
| 763 | $itext0
|
---|
| 764 | $itext37"
|
---|
| 765 | echo "$msg"
|
---|
| 766 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 767 | exit 1
|
---|
| 768 | fi
|
---|
| 769 | fi
|
---|
| 770 |
|
---|
| 771 |
|
---|
| 772 | # try to find out hostname
|
---|
| 773 | if [ "$gsdlos" = "linux" ]; then
|
---|
| 774 | hostname=`hostname -f`
|
---|
| 775 | if [ "$hostname" = "" ]; then
|
---|
| 776 | hostname=`hostname -i`
|
---|
| 777 | fi
|
---|
| 778 | fi
|
---|
| 779 | if [ "$hostname" = "" ]; then
|
---|
| 780 | hostname=`hostname`
|
---|
| 781 | fi
|
---|
| 782 | if [ "$hostname" = "" ]; then
|
---|
| 783 | hostname="your-computer-name"
|
---|
| 784 | fi
|
---|
| 785 |
|
---|
| 786 |
|
---|
| 787 | # get cgi-bin directory
|
---|
| 788 | echo "$itext28"
|
---|
| 789 | echo "$itext28" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 790 | if [ "$logname" != "root" ]; then
|
---|
| 791 | echo "$itext29"
|
---|
| 792 | echo "$itext29" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 793 | fi
|
---|
| 794 | echo "$itext30"
|
---|
| 795 | echo "$itext30" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 796 | if [ "$logname" != "root" ]; then
|
---|
| 797 | echo "$itext31"
|
---|
| 798 | echo "$itext31" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 799 | fi
|
---|
| 800 | found=no
|
---|
| 801 | remind_cgi="no"
|
---|
| 802 | remind_cgi_nomove="no"
|
---|
| 803 | while [ "$found" = "no" ]; do
|
---|
| 804 | echo "$itext32"
|
---|
| 805 | echo "$itext32" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 806 | printf "%s" "> "
|
---|
| 807 | read ans
|
---|
| 808 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 809 | if [ "$ans" = "" ] || [ "$ans" = "1" ]; then
|
---|
| 810 | found="option1"
|
---|
| 811 | cgi_bin="${gsdlhome}/cgi-bin"
|
---|
| 812 | # default gsdl cgi-bin, do nothing
|
---|
| 813 |
|
---|
| 814 | echo "$itext33"
|
---|
| 815 | echo "$itext33" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 816 | remind_cgi="yes"
|
---|
| 817 | elif [ "$ans" = "2" ]; then
|
---|
| 818 | found="option2"
|
---|
| 819 | # external cgi-bin
|
---|
| 820 |
|
---|
| 821 | echo "$itext34"
|
---|
| 822 | echo "$itext34" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 823 | printf "%s" "> "
|
---|
| 824 | read ans
|
---|
| 825 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 826 | if [ "$ans" = "" ]; then
|
---|
| 827 | cgi_bin="/usr/local/apache/cgi-bin"
|
---|
| 828 | else
|
---|
| 829 | cgi_bin="$ans"
|
---|
| 830 | fi
|
---|
| 831 |
|
---|
| 832 | itext35="Warning: The ${cgi_bin} directory does not exist.
|
---|
| 833 | Create it? [y]"
|
---|
| 834 |
|
---|
| 835 | itext36="Don't forget to configure your webserver to treat $cgi_bin
|
---|
| 836 | as a cgi executable directory. Don't worry, you'll be
|
---|
| 837 | reminded of this again at the end of the installation
|
---|
| 838 | procedure"
|
---|
| 839 |
|
---|
| 840 | itext38="ERROR: failed to create $cgi_bin directory"
|
---|
| 841 |
|
---|
| 842 | itext39="
|
---|
| 843 | Unable to write to $cgi_bin directory. You will need
|
---|
| 844 | to copy the contents of ${gsdlhome}/cgi-bin
|
---|
| 845 | to $cgi_bin after this installation is completed.
|
---|
| 846 | You'll be reminded of this again at the end of the
|
---|
| 847 | installation procedure."
|
---|
| 848 |
|
---|
| 849 | itext40="
|
---|
| 850 | Installing Greenstone cgi programs in $cgi_bin"
|
---|
| 851 |
|
---|
| 852 | if [ ! -d "$cgi_bin" ]; then
|
---|
| 853 |
|
---|
| 854 | echo "$itext35"
|
---|
| 855 | echo "$itext35" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 856 | printf "%s" "> "
|
---|
| 857 | read ans
|
---|
| 858 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 859 | if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
|
---|
| 860 | msg="--> Install.sh: [$cmd_mkdir \"$cgi_bin\"]"
|
---|
| 861 | echo "$msg"
|
---|
| 862 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 863 | $cmd_mkdir "$cgi_bin"
|
---|
| 864 | if [ -d "$cgi_bin" ]; then
|
---|
| 865 | echo "$itext36"
|
---|
| 866 | echo "$itext36" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 867 | remind_cgi="yes"
|
---|
| 868 | else
|
---|
| 869 | msg="$itext38
|
---|
| 870 | $itext0
|
---|
| 871 | $itext37"
|
---|
| 872 | echo "$msg"
|
---|
| 873 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 874 | exit 1
|
---|
| 875 | fi
|
---|
| 876 | fi
|
---|
| 877 | fi
|
---|
| 878 |
|
---|
| 879 | if [ ! -w "$cgi_bin" ]; then
|
---|
| 880 | echo "$itext39"
|
---|
| 881 | echo "$itext39" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 882 | remind_cgi_nomove="yes"
|
---|
| 883 | else
|
---|
| 884 | # install cgi-bin stuff (update the uninstall script first)
|
---|
| 885 | cd "$gsdlhome"
|
---|
| 886 | echo "#!/bin/sh" > Uninstall.sh
|
---|
| 887 | echo "" >> Uninstall.sh
|
---|
| 888 | echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> Uninstall.sh
|
---|
| 889 | echo "$cmd_rm \"${cgi_bin}/library\"" >> Uninstall.sh
|
---|
| 890 | echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
|
---|
| 891 | echo "read ans" >> Uninstall.sh
|
---|
| 892 | echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
|
---|
| 893 | echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
|
---|
| 894 | echo "fi" >> Uninstall.sh
|
---|
| 895 | $cmd_chmod u+x Uninstall.sh
|
---|
| 896 | cd "$thisdir"
|
---|
| 897 |
|
---|
| 898 | msg="$itext40
|
---|
| 899 | --> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/gsdlsite.cfg\" \"$cgi_bin\"]"
|
---|
| 900 | echo "$msg"
|
---|
| 901 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 902 | $cmd_mv "${gsdlhome}/cgi-bin/gsdlsite.cfg" "$cgi_bin"
|
---|
| 903 | msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/library\" \"$cgi_bin\"]"
|
---|
| 904 | echo "$msg"
|
---|
| 905 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 906 | $cmd_mv "${gsdlhome}/cgi-bin/library" "$cgi_bin"
|
---|
| 907 | fi
|
---|
| 908 | fi
|
---|
| 909 | done
|
---|
| 910 |
|
---|
| 911 | # web address of cgi-bin
|
---|
| 912 | web_cgi="http://${hostname}/cgi-bin"
|
---|
| 913 | if [ "$found" = "option1" ]; then
|
---|
| 914 | web_cgi="http://${hostname}/gsdl/cgi-bin"
|
---|
| 915 | fi
|
---|
| 916 |
|
---|
| 917 | itext41="
|
---|
| 918 | Please enter the web address of the $cgi_bin
|
---|
| 919 | directory. Typically this might be http://localhost/cgi-bin,
|
---|
| 920 | or http://127.0.0.1/cgi-bin, or http://your-computer-name/cgi-bin,
|
---|
| 921 | or http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]"
|
---|
| 922 |
|
---|
| 923 | echo "$itext41"
|
---|
| 924 | echo "$itext41" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 925 | printf "%s" "> "
|
---|
| 926 | read ans
|
---|
| 927 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 928 | if [ "$ans" != "" ]; then
|
---|
| 929 | web_cgi="$ans"
|
---|
| 930 | fi
|
---|
| 931 |
|
---|
| 932 | # get public_html directory
|
---|
| 933 | echo "$itext42"
|
---|
| 934 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 935 | if [ "$logname" != "root" ]; then
|
---|
| 936 | echo "$itext29"
|
---|
| 937 | echo "$itext29" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 938 | fi
|
---|
| 939 | echo "$itext43"
|
---|
| 940 | echo "$itext43" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 941 | if [ "$logname" != "root" ]; then
|
---|
| 942 | echo "$itext44"
|
---|
| 943 | echo "$itext44" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 944 | fi
|
---|
| 945 | echo "$itext45"
|
---|
| 946 | echo "$itext45" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 947 | found="no"
|
---|
| 948 | remind_ph="no"
|
---|
| 949 | remind_ph_nolink="no"
|
---|
| 950 | while [ "$found" = "no" ]; do
|
---|
| 951 | echo "$itext32"
|
---|
| 952 | echo "$itext32" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 953 | printf "%s" "> "
|
---|
| 954 | read ans
|
---|
| 955 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 956 | if [ "$ans" = "" ] || [ "$ans" = "1" ]; then
|
---|
| 957 | found="yes"
|
---|
| 958 | public_html="$gsdlhome"
|
---|
| 959 | # no link
|
---|
| 960 | echo "$itext46"
|
---|
| 961 | echo "$itext46" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 962 | remind_ph="yes"
|
---|
| 963 | elif [ "$ans" = "2" ]; then
|
---|
| 964 | found="yes"
|
---|
| 965 | # external public_html
|
---|
| 966 | echo
|
---|
| 967 | public_html="/home/${logname}/public_html"
|
---|
| 968 | if [ "$logname" = "root" ]; then
|
---|
| 969 | public_html="/usr/local/apache/htdocs"
|
---|
| 970 | fi
|
---|
| 971 |
|
---|
| 972 | itext47="Enter directory that is also accessible from the web [${public_html}]"
|
---|
| 973 |
|
---|
| 974 | echo "$itext47"
|
---|
| 975 | echo "$itext47" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 976 | printf "%s" "> "
|
---|
| 977 | read ans
|
---|
| 978 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 979 | if [ "$ans" != "" ]; then
|
---|
| 980 | public_html="$ans"
|
---|
| 981 | fi
|
---|
| 982 |
|
---|
| 983 | itext48="
|
---|
| 984 | Unable to write to $public_html directory. You will need
|
---|
| 985 | to create a link called gsdl from $public_html to
|
---|
| 986 | $gsdlhome after this installation is completed. You'll be
|
---|
| 987 | reminded of this again at the end of the installation
|
---|
| 988 | procedure."
|
---|
| 989 |
|
---|
| 990 | # create link to gsdl (and update Uninstall.sh)
|
---|
| 991 | if [ -w "$public_html" ]; then
|
---|
| 992 | cd "$gsdlhome"
|
---|
| 993 | echo "#!/bin/sh" > Uninstall.sh
|
---|
| 994 | echo "" >> Uninstall.sh
|
---|
| 995 | echo "$cmd_rm \"$public_html/gsdl\"" >> Uninstall.sh
|
---|
| 996 | echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> Uninstall.sh
|
---|
| 997 | echo "$cmd_rm \"${cgi_bin}/library\"" >> Uninstall.sh
|
---|
| 998 | echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
|
---|
| 999 | echo "read ans" >> Uninstall.sh
|
---|
| 1000 | echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
|
---|
| 1001 | echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
|
---|
| 1002 | echo "fi" >> Uninstall.sh
|
---|
| 1003 | $cmd_chmod u+x Uninstall.sh
|
---|
| 1004 | cd "$thisdir"
|
---|
| 1005 |
|
---|
| 1006 | msg="--> Install.sh: [cd \"$public_html\"]"
|
---|
| 1007 | echo "$msg"
|
---|
| 1008 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1009 | cd "$public_html"
|
---|
| 1010 | msg="--> Install.sh: [$cmd_ln \"$gsdlhome\" gsdl]"
|
---|
| 1011 | echo "$msg"
|
---|
| 1012 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1013 | $cmd_ln "$gsdlhome" gsdl
|
---|
| 1014 | msg="--> Install.sh: [cd \"$thisdir\"]"
|
---|
| 1015 | echo "$msg"
|
---|
| 1016 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1017 | cd "$thisdir"
|
---|
| 1018 | else
|
---|
| 1019 | echo "$itext48"
|
---|
| 1020 | echo "$itext48" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1021 | old_ph=$public_html
|
---|
| 1022 | remind_ph_nolink="yes"
|
---|
| 1023 | fi
|
---|
| 1024 | public_html="${public_html}/gsdl"
|
---|
| 1025 | fi
|
---|
| 1026 | done
|
---|
| 1027 |
|
---|
| 1028 | itext49="
|
---|
| 1029 | Enter the web address of the $public_html directory.
|
---|
| 1030 | This may be a relative url (e.g. \"/gsdl\") or a
|
---|
| 1031 | complete url (e.g. \"http://${hostname}/gsdl\") [/gsdl]"
|
---|
| 1032 |
|
---|
| 1033 | itext50="
|
---|
| 1034 | In order to use end-user collection building or to access certain
|
---|
| 1035 | parts of the administration pages you must have a password.
|
---|
| 1036 | A user with the username \"admin\" will be created for you with
|
---|
| 1037 | the password you provide (i.e. to enter any pages requiring user
|
---|
| 1038 | authentication enter the \"admin\" username and the password you
|
---|
| 1039 | set here).
|
---|
| 1040 | "
|
---|
| 1041 |
|
---|
| 1042 | itext51="
|
---|
| 1043 |
|
---|
| 1044 | Greenstone installation completed successfully."
|
---|
| 1045 |
|
---|
| 1046 | itext52=" * Don't forget to configure your webserver to treat
|
---|
| 1047 | $cgi_bin as a cgi executable directory."
|
---|
| 1048 |
|
---|
| 1049 | itext53=" For the Apache webserver this means adding the following
|
---|
| 1050 | ScriptAlias directive to your httpd.conf configuration file."
|
---|
| 1051 |
|
---|
| 1052 | itext54=" * Don't forget to move the contents of ${gsdlhome}/cgi-bin
|
---|
| 1053 | to $cgi_bin
|
---|
| 1054 | "
|
---|
| 1055 |
|
---|
| 1056 | itext55=" * Don't forget to configure your webserver to treat
|
---|
| 1057 | $gsdlhome as a web accessible directory."
|
---|
| 1058 |
|
---|
| 1059 | itext56=" For the Apache webserver this means adding the following
|
---|
| 1060 | Alias directive to your httpd.conf configuration file."
|
---|
| 1061 |
|
---|
| 1062 | itext57=" * Don't forget to create a link called gsdl from $old_ph
|
---|
| 1063 | to ${gsdlhome}.
|
---|
| 1064 | "
|
---|
| 1065 |
|
---|
| 1066 | itext58="The output of this script has been recorded for you at
|
---|
| 1067 | ${gsdlhome}/INSTALL_RECORD.
|
---|
| 1068 | You may remove Greenstone from your system at any time by running
|
---|
| 1069 | the ${gsdlhome}/Uninstall.sh script.
|
---|
| 1070 | Access Greenstone by pointing a web browser at
|
---|
| 1071 | ${web_cgi}/library
|
---|
| 1072 | "
|
---|
| 1073 |
|
---|
| 1074 | # get httpprefix
|
---|
| 1075 | echo "$itext49"
|
---|
| 1076 | echo "$itext49" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1077 | printf "%s" ">"
|
---|
| 1078 | httpprefix="/gsdl"
|
---|
| 1079 | read ans
|
---|
| 1080 | echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1081 | if [ "$ans" != "" ]; then
|
---|
| 1082 | httpprefix="$ans"
|
---|
| 1083 | fi
|
---|
| 1084 |
|
---|
| 1085 | # get initial password
|
---|
| 1086 | echo "$itext50"
|
---|
| 1087 | echo "$itext50" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1088 | pw=`"${gsdlhome}/bin/${gsdlos}/getpw"`
|
---|
| 1089 | tmp="[admin]
|
---|
| 1090 | <comment>
|
---|
| 1091 | <enabled>true
|
---|
| 1092 | <groups>administrator,colbuilder
|
---|
| 1093 | <password>${pw}
|
---|
| 1094 | <username>admin
|
---|
| 1095 | ----------------------------------------------------------------------"
|
---|
| 1096 | echo "$tmp" | ${gsdlhome}/bin/${gsdlos}/txt2db "${gsdlhome}/etc/users.db"
|
---|
| 1097 | $cmd_chmod a+rw "${gsdlhome}/etc/users.db"
|
---|
| 1098 |
|
---|
| 1099 | # edit gsdlsite.cfg
|
---|
| 1100 | cd "$cgi_bin"
|
---|
| 1101 | sed "s|\(gsdlhome *\)[^ ]*|\1\"${gsdlhome}\"|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
|
---|
| 1102 | sed "s|#*\(httpprefix *\)[^ ]*|\1${httpprefix}|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
|
---|
| 1103 | sed "s|\(httpimg *\)[^ ]*|\1${httpprefix}/images|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
|
---|
| 1104 |
|
---|
| 1105 | # success
|
---|
| 1106 | echo "$itext51"
|
---|
| 1107 | echo "$itext51" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1108 | if [ "$remind_cgi" = "yes" ]; then
|
---|
| 1109 | echo "$itext52"
|
---|
| 1110 | echo "$itext52" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1111 |
|
---|
| 1112 | apache_web_cgi=`echo "$web_cgi" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"`
|
---|
| 1113 | cgi_bin_slash=`echo "$cgi_bin" | sed "s|/*$|/|"`
|
---|
| 1114 | cgi_bin_noslash=`echo "$cgi_bin" | sed "s|/*$||"`
|
---|
| 1115 |
|
---|
| 1116 | msg="$itext53
|
---|
| 1117 |
|
---|
| 1118 | ScriptAlias ${apache_web_cgi} \"${cgi_bin_slash}\"
|
---|
| 1119 | <Directory \"${cgi_bin_noslash}\">
|
---|
| 1120 | AllowOverride None
|
---|
| 1121 | Options None
|
---|
| 1122 | Order allow,deny
|
---|
| 1123 | Allow from all
|
---|
| 1124 | </Directory>
|
---|
| 1125 | "
|
---|
| 1126 | echo "$msg"
|
---|
| 1127 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1128 | fi
|
---|
| 1129 | if [ "$remind_cgi_nomove" = "yes" ]; then
|
---|
| 1130 | echo "$itext54"
|
---|
| 1131 | echo "$itext54" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1132 | fi
|
---|
| 1133 | if [ "$remind_ph" = "yes" ]; then
|
---|
| 1134 | echo "$itext55"
|
---|
| 1135 | echo "$itext55" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1136 |
|
---|
| 1137 | apache_httpprefix=`echo "$httpprefix" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"`
|
---|
| 1138 | public_html_slash=`echo "$public_html" | sed "s|/*$|/|"`
|
---|
| 1139 | public_html_noslash=`echo "$public_html" | sed "s|/*$||"`
|
---|
| 1140 |
|
---|
| 1141 | msg="$itext56
|
---|
| 1142 |
|
---|
| 1143 | Alias ${apache_httpprefix} \"${public_html_slash}\"
|
---|
| 1144 | <Directory \"${public_html_noslash}\">
|
---|
| 1145 | Options Indexes MultiViews FollowSymLinks
|
---|
| 1146 | AllowOverride None
|
---|
| 1147 | Order allow,deny
|
---|
| 1148 | Allow from all
|
---|
| 1149 | </Directory>
|
---|
| 1150 | "
|
---|
| 1151 | echo "$msg"
|
---|
| 1152 | echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1153 | fi
|
---|
| 1154 | if [ "$remind_ph_nolink" = "yes" ]; then
|
---|
| 1155 | echo "$itext57"
|
---|
| 1156 | echo "$itext57" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1157 | fi
|
---|
| 1158 | echo "$itext58"
|
---|
| 1159 | echo "$itext58" >> "${gsdlhome}/INSTALL_RECORD"
|
---|
| 1160 |
|
---|
| 1161 | exit 0
|
---|