source: trunk/gsdl/Install.sh@ 1678

Last change on this file since 1678 was 1678, checked in by sjboddie, 23 years ago

Re-added some recent changes that got lost when the cvs repository was
moved. This was mostly changes to the collector and building code

  • Property svn:executable set to *
  • Property svn:mime-type set to application/octet-stream
File size: 19.9 KB
Line 
1#!/bin/sh
2
3## Install.sh -- Install Greenstone
4
5cmd_cp="cp"
6cmd_cpr="cp -r"
7cmd_chmod="chmod"
8cmd_mkdir="mkdir -p"
9cmd_ln="ln -s"
10cmd_mv="mv"
11cmd_rm="rm -i"
12cmd_rmr="rm -r"
13
14thisdir=`pwd`
15cd ..
16cd_dir=`pwd`
17cd "$thisdir"
18
19# script must be run from within cdrom/unix directory
20if [ ! -f "${thisdir}/Install.sh" ]; then
21 echo "Install.sh must be run from the directory in which it resides"
22 echo "Greenstone was not installed"
23 exit 1
24fi
25
26# check that various important directories are on the cd
27if [ ! -d "${cd_dir}/gsdl" ]; then
28 echo
29 echo "ERROR: Could not locate ${cd_dir}/gsdl"
30 echo "Greenstone was not installed"
31 exit 1
32fi
33if [ ! -d "${cd_dir}/Unix/bin/linux" ]; then
34 echo
35 echo "ERROR: Could not locate ${cd_dir}/Unix/bin/linux"
36 echo "Greenstone was not installed"
37 exit 1
38fi
39
40
41# install to /usr/local by default if user is "root", otherwise
42# default to users home directory
43gsdlos=`uname | tr A-Z a-z`
44if [ "$gsdlos" = "linux" ]; then
45 logname=`whoami`
46else
47 logname=""
48fi
49if [ "$logname" = "" ]; then
50 logname=`logname`
51fi
52gsdlhome="/home/${logname}"
53if [ "$logname" = "root" ]; then
54 gsdlhome="/usr/local"
55fi
56
57# get gsdlhome
58echo
59echo "This script will install Greenstone on your system. Please read"
60echo "the Install.htm file that resides in the docs directory of this"
61echo "cd-rom before installing."
62echo
63echo "Note that when prompted for input, hitting \"enter\" will select"
64echo "the default (given in square brackets [] at the end of each question)."
65echo
66echo "Note also that Install.sh prints out information on any commands"
67echo "it runs on your system in the form \"--> Install.sh: [command]\"."
68echo
69echo "It is assumed throughout this installation procedure that you"
70echo "have a webserver installed on your system."
71echo
72echo "Continue? [y]"
73printf "%s" "> "
74read ans
75if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
76 echo "Greenstone was not installed"
77 exit 0
78fi
79
80echo
81echo "Enter directory to install Greenstone into. A gsdl directory"
82echo "will be created in this directory. [${gsdlhome}]"
83printf "%s" "> "
84read ans
85if [ "$ans" != "" ]; then
86 gsdlhome="$ans"
87fi
88
89if [ ! -d "$gsdlhome" ]; then
90 echo "Warning: The ${gsdlhome} directory does not exist."
91 echo "Create it? [y]"
92 printf "%s" "> "
93 read ans
94 if [ "$ans" = "" ]; then
95 ans="y"
96 fi
97 if [ "$ans" = "y" ]; then
98 echo "--> Install.sh: [$cmd_mkdir \"$gsdlhome\"]"
99 $cmd_mkdir "$gsdlhome"
100 if [ ! -d "$gsdlhome" ]; then
101 echo "ERROR: failed to create $gsdlhome directory"
102 echo "Greenstone was not installed"
103 exit 1
104 fi
105 else
106 echo "Greenstone was not installed"
107 exit 0
108 fi
109fi;
110
111
112# from now on $gsdlhome includes the "/gsdl"
113gsdlhome="${gsdlhome}/gsdl"
114
115echo "--> Install.sh: [$cmd_mkdir \"${gsdlhome}\"]"
116$cmd_mkdir "$gsdlhome"
117if [ ! -d "$gsdlhome" ]; then
118 echo "ERROR: failed to create $gsdlhome directory"
119 echo "Greenstone was not installed"
120 exit 1
121fi
122# set permissions on gsdlhome directory (not that we should need to)
123echo "--> Install.sh: [$cmd_chmod u+rwx \"${gsdlhome}\"]"
124$cmd_chmod u+rwx "$gsdlhome"
125
126
127# create initial uninstall.sh
128cd "$gsdlhome"
129echo "#!/bin/sh" > uninstall.sh
130echo "" >> uninstall.sh
131echo "echo \"remove ${gsdlhome} directory? [y]\"" >> uninstall.sh
132echo "read ans" >> uninstall.sh
133echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> uninstall.sh
134echo " $cmd_rmr \"$gsdlhome\"" >> uninstall.sh
135echo "fi" >> uninstall.sh
136$cmd_chmod u+x uninstall.sh
137cd "$thisdir"
138
139echo
140echo "If this installation fails or is cancelled, run the uninstall"
141echo "script (${gsdlhome}/uninstall.sh) to clean up the partial"
142echo "installation."
143echo "Continue? [y]"
144printf "%s" "> "
145read ans
146if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
147 echo "Greenstone was not installed"
148 exit 0
149fi
150
151echo
152echo "Installing Greenstone directory structure to ${gsdlhome}"
153# copy gsdl directory across
154echo "--> Install.sh: [$cmd_cpr \"${cd_dir}/gsdl/\"* \"$gsdlhome\"]"
155$cmd_cpr "${cd_dir}/gsdl/"* "$gsdlhome"
156
157# copy setup shell scripts across too
158echo "--> Install.sh: [$cmd_cp \"${cd_dir}/src/Unix/setup.\"* \"$gsdlhome\"]"
159$cmd_cp "${cd_dir}/src/Unix/setup."* "$gsdlhome"
160
161# create the tmp directory
162echo "--> Install.sh: [$cmd_mkdir \"$gsdlhome/tmp\"]"
163$cmd_mkdir "$gsdlhome/tmp"
164
165# make collect directory writable so we can install collections
166echo "--> Install.sh: [$cmd_chmod u+rwx \"$gsdlhome/collect\"]"
167$cmd_chmod u+rwx "$gsdlhome/collect"
168
169# which collections do we want
170cd "${cd_dir}/collect"
171files=*
172first="yes"
173for file in $files
174do
175 if [ "$file" != "*" ]; then
176 if [ "$first" = "yes" ]; then
177 echo
178 echo "The Greenstone demonstration collection has been installed. Would you"
179 echo "like to install any other collections from the installation cd-rom? [y]"
180 read ans
181 if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
182 break
183 fi
184 first="no"
185 fi
186
187 echo
188 echo "Install the $file collection? [y]"
189 printf "%s" "> "
190 read ans
191 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
192 echo "--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/$file\" \"${gsdlhome}/collect\"]"
193 $cmd_cpr "${cd_dir}/collect/$file" "${gsdlhome}/collect"
194 fi
195 fi
196done
197
198# set permissions
199echo
200echo "Setting permissions ..."
201echo "--> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]"
202$cmd_chmod -R u+rw "$gsdlhome"
203# gsdl/etc needs to be globally writable
204echo "--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc\"]"
205$cmd_chmod a+w "$gsdlhome/etc"
206
207# should gsdl/collect and gsdl/tmp be globally writable?
208echo
209echo "In order for end-user collection building to be enabled the"
210echo "Greenstone cgi program must be able to write to the"
211echo "${gsdlhome}/collect and ${gsdlhome}/tmp directories."
212echo "On most systems this means they must be globally writable."
213echo "Make these directories globally writable? [y]"
214printf "%s" "> "
215read ans
216if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
217 echo "--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/collect\"]"
218 $cmd_chmod a+w "$gsdlhome/collect"
219 echo "--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/tmp\"]"
220 $cmd_chmod a+w "$gsdlhome/tmp"
221fi
222
223# binaries or source code?
224compile="yes"
225if [ "$gsdlos" = "linux" ]; then
226 echo
227 echo "You may either install pre-compiled, statically linked linux [b]inaries"
228 echo "or install and [c]ompile the Greenstone source code"
229
230 found=no
231 while [ "$found" = "no" ]; do
232 echo "Enter \"[b]\" or \"c\""
233 printf "%s" "> "
234 read ans
235 if [ "$ans" = "" ] || [ "$ans" = "b" ]; then
236 compile="no"
237 # install binaries
238 echo
239 echo "Installing linux binaries"
240 echo "--> Install.sh: [$cmd_cpr \"${cd_dir}/Unix/bin/linux\" \"${gsdlhome}/bin\" ]"
241 $cmd_cpr "${cd_dir}/Unix/bin/linux" "${gsdlhome}/bin"
242 echo "--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/linux/\"*]"
243 $cmd_chmod a+x "${gsdlhome}/bin/linux/"*
244 echo "--> Install.sh: [$cmd_chmod -R u+rw \"${gsdlhome}/bin/linux\"]"
245 $cmd_chmod -R u+rw "${gsdlhome}/bin/linux"
246
247 # move library executable to cgi-bin
248 echo "--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/library\" \"${gsdlhome}/cgi-bin\"]"
249 $cmd_mv "${gsdlhome}/bin/linux/library" "${gsdlhome}/cgi-bin"
250
251 found="yes"
252 elif [ "$ans" = "c" ]; then
253 found="yes"
254 fi
255 done
256fi
257
258if [ "$compile" = "yes" ]; then
259 # install source
260 echo
261 echo "Installing source code"
262 echo "--> Install.sh [$cmd_cpr \"${cd_dir}/src/lib\" \"$gsdlhome\"]"
263 $cmd_cpr "${cd_dir}/src/lib" "$gsdlhome"
264 echo "--> Install.sh [$cmd_cpr \"${cd_dir}/src/packages\" \"$gsdlhome\"]"
265 $cmd_cpr "${cd_dir}/src/packages" "$gsdlhome"
266 echo "--> Install.sh [$cmd_cpr \"${cd_dir}/src/src\" \"$gsdlhome\"]"
267 $cmd_cpr "${cd_dir}/src/src" "$gsdlhome"
268 echo "--> Install.sh [$cmd_cpr \"${cd_dir}/src/Unix/\"* \"$gsdlhome\"]"
269 $cmd_cpr "${cd_dir}/src/Unix/"* "$gsdlhome"
270 echo "--> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]"
271 $cmd_chmod -R u+rw "$gsdlhome"
272 echo "--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/configure\"]"
273 $cmd_chmod a+x "${gsdlhome}/configure"
274 echo "--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/packages/yaz/configure\"]"
275 $cmd_chmod a+x "${gsdlhome}/packages/yaz/configure"
276
277 # compile it
278 echo "--> Install.sh: [cd $gsdlhome]"
279 cd "$gsdlhome"
280 echo "configuring ..."
281 echo
282 echo "--> Install.sh: [./configure]"
283 ./configure
284 echo "compiling ..."
285 echo
286 echo "--> Install.sh: [make]"
287 make
288 echo "installing ..."
289 echo
290 echo "--> Install.sh: [make install]"
291 make install
292 echo "--> Install.sh: [cd $thisdir]"
293 cd "$thisdir"
294
295 # check that things compiled ok
296 if [ ! -f "${gsdlhome}/cgi-bin/library" ]; then
297 echo
298 echo "ERROR: Compilation failed"
299 echo "Greenstone was not installed successfully"
300 echo "Run the uninstall script (${gsdlhome}/uninstall.sh)"
301 echo "to clean up the partial installation."
302 exit 1
303 fi
304fi
305
306
307# try to find out hostname
308if [ "$gsdlos" = "linux" ]; then
309 hostname=`hostname -f`
310 if [ "$hostname" = "" ]; then
311 hostname=`hostname -i`
312 fi
313fi
314if [ "$hostname" = "" ]; then
315 hostname=`hostname`
316fi
317if [ "$hostname" = "" ]; then
318 hostname="your-computer-name"
319fi
320
321
322# get cgi-bin directory
323echo
324echo
325echo "Greenstone needs a valid cgi executable directory (normally called"
326echo "cgi-bin on unix systems) from which to run."
327echo "This may be either:"
328echo " 1. The default Greenstone cgi-bin directory (${gsdlhome}/cgi-bin)."
329echo " If you use the Greenstone default you will need to configure"
330echo " your webserver to treat this directory as a cgi executable"
331echo " directory. For the Apache webserver you use the ScriptAlias"
332echo " directive to do this."
333if [ "$logname" != "root" ]; then
334echo " Note that you will probably need help from your system"
335echo " administrator to reconfigure your webserver."
336fi
337echo " 2. An existing cgi-bin directory. Normally a cgi-bin directory"
338echo " is created when your webserver is installed. Typically, this"
339echo " might be /home/httpd/cgi-bin, or /usr/local/apache/cgi-bin, or"
340echo " /var/lib/apache/cgi-bin."
341if [ "$logname" != "root" ]; then
342 echo " Many systems also allow individual users to have their own"
343 echo " cgi-bin in /home/username/public_html/cgi-bin."
344fi
345found=no
346remind_cgi="no"
347remind_cgi_nomove="no"
348while [ "$found" = "no" ]; do
349 echo "Enter \"[1]\" or \"2\""
350 printf "%s" "> "
351 read ans
352 if [ "$ans" = "" ] || [ "$ans" = "1" ]; then
353 found="option1"
354 cgi_bin="${gsdlhome}/cgi-bin"
355 # default gsdl cgi-bin, do nothing
356 echo
357 echo "Don't forget to configure your webserver to treat $cgi_bin"
358 echo "as a cgi executable directory."
359 remind_cgi="yes"
360 elif [ "$ans" = "2" ]; then
361 found="option2"
362 # external cgi-bin
363 echo
364 echo "Enter existing cgi executable directory [/usr/local/apache/cgi-bin]"
365 printf "%s" "> "
366 read ans
367 if [ "$ans" = "" ]; then
368 cgi_bin="/usr/local/apache/cgi-bin"
369 else
370 cgi_bin="$ans"
371 fi
372 if [ ! -d "$cgi_bin" ]; then
373 echo "Warning: The ${cgi_bin} directory does not exist."
374 echo "Create it? [y]"
375 printf "%s" "> "
376 read ans
377 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
378 echo "--> Install.sh: [$cmd_mkdir \"$cgi_bin\"]"
379 $cmd_mkdir "$cgi_bin"
380 if [ -d "$cgi_bin" ]; then
381 echo "Don't forget to configure your webserver to treat $cgi_bin"
382 echo "as a cgi executable directory."
383 remind_cgi="yes"
384 else
385 echo "ERROR: failed to create $cgi_bin directory"
386 echo "Greenstone installation failed."
387 echo "Run the uninstall script (${gsdlhome}/uninstall.sh)"
388 echo "to clean up the partial installation."
389 exit 1
390 fi
391 fi
392 fi
393
394 if [ ! -w "$cgi_bin" ]; then
395 echo
396 echo "Unable to write to $cgi_bin directory. You will need"
397 echo "to copy the contents of ${gsdlhome}/cgi-bin"
398 echo "to $cgi_bin after this installation is completed."
399 remind_cgi_nomove="yes"
400 else
401 # install cgi-bin stuff (update the uninstall script first)
402 cd "$gsdlhome"
403 echo "#!/bin/sh" > uninstall.sh
404 echo "" >> uninstall.sh
405 echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> uninstall.sh
406 echo "$cmd_rm \"${cgi_bin}/library\"" >> uninstall.sh
407 echo "echo \"remove ${gsdlhome} directory? [y]\"" >> uninstall.sh
408 echo "read ans" >> uninstall.sh
409 echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> uninstall.sh
410 echo " $cmd_rmr \"$gsdlhome\"" >> uninstall.sh
411 echo "fi" >> uninstall.sh
412 $cmd_chmod u+x uninstall.sh
413 cd "$thisdir"
414
415 echo
416 echo "Installing Greenstone cgi programs in $cgi_bin"
417 echo "--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/gsdlsite.cfg\" \"$cgi_bin\"]"
418 $cmd_mv "${gsdlhome}/cgi-bin/gsdlsite.cfg" "$cgi_bin"
419 echo "--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/library\" \"$cgi_bin\"]"
420 $cmd_mv "${gsdlhome}/cgi-bin/library" "$cgi_bin"
421 fi
422 fi
423done
424
425# web address of cgi-bin
426web_cgi="http://${hostname}/cgi-bin"
427if [ "$found" = "option1" ]; then
428 web_cgi="http://${hostname}/gsdl/cgi-bin"
429fi
430echo
431echo "Please enter the web address of the $cgi_bin"
432echo "directory. Typically this might be http://localhost/cgi-bin,"
433echo "or http://127.0.0.1/cgi-bin, or http://your-computer-name/cgi-bin,"
434echo "or http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]"
435printf "%s" "> "
436read ans
437if [ "$ans" != "" ]; then
438 web_cgi="$ans"
439fi
440
441# get public_html directory
442echo
443echo
444echo "In order for Greenstone to run, the $gsdlhome"
445echo "directory and all it contains must be accessible from the web."
446echo "To make this happen you may either:"
447echo " 1. Configure your webserver so that $gsdlhome"
448echo " is itself accessible from the web."
449if [ "$logname" != "root" ]; then
450echo " Note that you will probably need help from your system"
451echo " administrator to reconfigure your webserver."
452fi
453echo " 2. Provide an existing web accessible directory from which"
454echo " a symbolic link will be made to $gsdlhome."
455echo " When your server was installed a web accessible directory"
456echo " will have been created (the Apache webserver uses the"
457echo " DocumentRoot directive to define this directory). Typically"
458echo " this directory might be /home/httpd/html, or /usr/local/apache/htdocs,"
459echo " or /var/lib/apache/htdocs."
460if [ "$logname" != "root" ]; then
461 echo " Many systems also allow individual users to have their own"
462 echo " web accessible directory in /home/username/public_html."
463fi
464echo " Note that your web server will need to be configured to allow"
465echo " symbolic links from within this directory. For the Apache"
466echo " server that means this directory must be configured with"
467echo " the SymLinksIfOwnerMatch or FollowSymLinks option (most Apache"
468echo " installations are configured this way by default)."
469found="no"
470remind_ph="no"
471remind_ph_nolink="no"
472while [ "$found" = "no" ]; do
473 echo "Enter \"[1]\" or \"2\""
474 printf "%s" "> "
475 read ans
476 if [ "$ans" = "" ] || [ "$ans" = "1" ]; then
477 found="yes"
478 public_html="$gsdlhome"
479 # no link
480 echo
481 echo "Don't forget to configure your webserver to make $gsdlhome"
482 echo "accessible from the web."
483 remind_ph="yes"
484 elif [ "$ans" = "2" ]; then
485 found="yes"
486 # external public_html
487 echo
488 public_html="/home/${logname}/public_html"
489 if [ "$logname" = "root" ]; then
490 public_html="/usr/local/apache/htdocs"
491 fi
492 echo "Enter directory that is also accessible from the web [${public_html}]"
493 printf "%s" "> "
494 read ans
495 if [ "$ans" != "" ]; then
496 public_html="$ans"
497 fi
498 # create link to gsdl (and update uninstall.sh)
499 if [ -w "$public_html" ]; then
500 cd "$gsdlhome"
501 echo "#!/bin/sh" > uninstall.sh
502 echo "" >> uninstall.sh
503 echo "$cmd_rm \"$public_html/gsdl\"" >> uninstall.sh
504 echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> uninstall.sh
505 echo "$cmd_rm \"${cgi_bin}/library\"" >> uninstall.sh
506 echo "echo \"remove ${gsdlhome} directory? [y]\"" >> uninstall.sh
507 echo "read ans" >> uninstall.sh
508 echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> uninstall.sh
509 echo " $cmd_rmr \"$gsdlhome\"" >> uninstall.sh
510 echo "fi" >> uninstall.sh
511 $cmd_chmod u+x uninstall.sh
512 cd "$thisdir"
513
514 echo "--> Install.sh: [cd \"$public_html\"]"
515 cd "$public_html"
516 echo "--> Install.sh: [$cmd_ln \"$gsdlhome\" gsdl]"
517 $cmd_ln "$gsdlhome" gsdl
518 echo "--> Install.sh: [cd \"$thisdir\"]"
519 cd "$thisdir"
520 else
521 echo
522 echo "Unable to write to $public_html directory. You will need"
523 echo "to create a link called gsdl from $public_html to"
524 echo "$gsdlhome after this installation is completed."
525 old_ph=$public_html
526 remind_ph_nolink="yes"
527 fi
528 public_html="${public_html}/gsdl"
529 fi
530done
531
532
533# get httpprefix
534echo
535echo "Enter the web address of the $public_html directory."
536echo "This may be a relative url (e.g. \"/gsdl\") or a"
537echo "complete url (e.g. \"http://${hostname}/gsdl\") [/gsdl]"
538printf "%s" ">"
539httpprefix="/gsdl"
540read ans
541if [ "$ans" != "" ]; then
542 httpprefix="$ans"
543fi
544
545# get initial password
546echo
547echo "In order to use end-user collection building or to access certain"
548echo "parts of the administration pages you must have a password."
549echo "A user with the username \"admin\" will be created for you with"
550echo "the password you provide (i.e. to enter any pages requiring user"
551echo "authentication enter the \"admin\" username and the password you"
552echo "set here).\n";
553pw=`${gsdlhome}/bin/${gsdlos}/getpw`
554tmp="[admin]
555<comment>
556<enabled>true
557<groups>administrator,colbuilder
558<password>${pw}
559<username>admin
560----------------------------------------------------------------------"
561echo "$tmp" | ${gsdlhome}/bin/${gsdlos}/txt2db "${gsdlhome}/etc/users.db"
562
563# edit gsdlsite.cfg
564cd "$cgi_bin"
565sed "s|\(gsdlhome *\)[^ ]*|\1${gsdlhome}|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
566sed "s|#*\(httpprefix *\)[^ ]*|\1${httpprefix}|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
567sed "s|\(httpimg *\)[^ ]*|\1${httpprefix}/images|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
568
569echo
570echo
571echo "Greenstone installation completed successfully."
572if [ "$remind_cgi" = "yes" ]; then
573 echo " * Don't forget to configure your webserver to treat"
574 echo " $cgi_bin as a cgi executable directory."
575
576 apache_web_cgi=`echo "$web_cgi" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"`
577 cgi_bin_slash=`echo "$cgi_bin" | sed "s|/*$|/|"`
578 cgi_bin_noslash=`echo "$cgi_bin" | sed "s|/*$||"`
579
580 echo " For the Apache webserver this means adding the following"
581 echo " ScriptAlias directive to your httpd.conf configuration file."
582 echo
583 echo " ScriptAlias ${apache_web_cgi} \"${cgi_bin_slash}\""
584 echo " <Directory \"${cgi_bin_noslash}\">"
585 echo " AllowOverride None"
586 echo " Options None"
587 echo " Order allow,deny"
588 echo " Allow from all"
589 echo " </Directory>"
590 echo
591fi
592if [ "$remind_cgi_nomove" = "yes" ]; then
593 echo " * Don't forget to move the contents of ${gsdlhome}/cgi-bin"
594 echo " to $cgi_bin"
595 echo
596fi
597if [ "$remind_ph" = "yes" ]; then
598 echo " * Don't forget to configure your webserver to treat"
599 echo " $gsdlhome as a web accessible directory."
600
601 apache_httpprefix=`echo "$httpprefix" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"`
602 public_html_slash=`echo "$public_html" | sed "s|/*$|/|"`
603 public_html_noslash=`echo "$public_html" | sed "s|/*$||"`
604
605 echo " For the Apache webserver this means adding the following"
606 echo " Alias directive to your httpd.conf configuration file."
607 echo
608 echo " Alias ${apache_httpprefix} \"${public_html_slash}\""
609 echo " <Directory \"${public_html_noslash}\">"
610 echo " Options Indexes MultiViews FollowSymLinks"
611 echo " AllowOverride None"
612 echo " Order allow,deny"
613 echo " Allow from all"
614 echo " </Directory>"
615 echo
616fi
617if [ "$remind_ph_nolink" = "yes" ]; then
618 echo " * Don't forget to create a link called gsdl from $old_ph"
619 echo " to ${gsdlhome}."
620 echo
621fi
622echo "You may remove Greenstone from your system at any time by running"
623echo "the ${gsdlhome}/uninstall.sh script."
624echo "Access Greenstone by pointing a web browser at"
625echo " ${web_cgi}/library"
626echo
627
628exit 0
Note: See TracBrowser for help on using the repository browser.