source: trunk/gsdl/Install.sh@ 2800

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