source: trunk/gsdl/Install.sh@ 2797

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

* empty log message *

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