NetReg: Problem with install_script: custom paths are not set.

New Message Reply Date view Thread view Subject view Author view Attachment view

From: Lukasz Karapuda (lkarap00@mercyhurst.edu)
Date: Wed Dec 03 2003 - 12:13:06 CST


Hello,

I am in the process of writing a wrapper script for performing the
pre-install, install and post-install phases of the Netreg v2.
installation on RedHat 9.0. I will be soon adjusting this script to
install Netreg on RedHat Linux Enterprise ES 3.0. I think that the
current documentation and install_script for netreg are very good.
However there is still a lot of extra steps in the pre-installation and
post-installation phase that can be automated (packages installation,
scheduling crontab jobs, database initialization etc.)

The problem I have ran into with the install_script is that while trying
to use completely custom paths for various services, e.g. httpd, bind,
dhcpd, the script does not assign correctly the inputted paths to the
%path array entries.

I am using the install_script that came with the 2.0Beta-1 release
(latest release). I did make a diff to the newest install_script file
and determined that there were no significant changes, that might solve
the problem I encounter.

This is how I configure the paths using the install_script:

----------------------------------------------------------------
init.d install path [preferred: /etc/init.d/]:
default/cached: [/etc/init.d/]
 
bind-chroot install path [preferred: /usr/local/bind9/chroot/]:
default/cached: [/var/named]
 
bin install path [preferred: /usr/local/bin/]:
default/cached: [/usr/local/bin/]
 
config install path [preferred: /etc/dhcpd/]:
default/cached: [/etc/dhcpd/]
 
apache base install path [preferred: /usr/local/apache2/]:
default/cached: [/var/www]
 
sbin install path [preferred: /usr/sbin/]:
default/cached: [/usr/sbin/]
 
cgi-bin install path [preferred: /var/www/cgi-bin/]:
default/cached: [/var/www/cgi-bin]
 
html install path [preferred: /var/www/cgi-bin/html/]:
default/cached: [/var/www/cgi-bin/html]
 
httpdconf install path [preferred: /var/www/conf/]:
default/cached: [/etc/httpd/conf/]
 
admin install path [preferred: /var/www/cgi-bin/admin/]:
default/cached: [/var/www/cgi-bin/admin]
 
htdocs install path [preferred: /var/www/htdocs/]:
default/cached: [/var/www/html]
 
images install path [preferred: /var/www/htdocs/gfx/]:
default/cached: [/var/www/html/gfx]
 
bind-conf install path [preferred: /var/named/etc/]:
default/cached: [/etc/]
 
bind-zones install path [preferred: /var/named/etc/namedb/]:
default/cached: [/var/named]
 
scripts install path [preferred: /var/www/htdocs/scripts/]:
default/cached: [/usr/local/netreg/scripts]
 
...DONE

----------------------------------------------------------------

That is what my %paths should be

 %paths = (
        'admin' => '/var/www/cgi-bin/admin/',
        'bind-chroot' => '/var/named/',
        'images' => 'var/www/htdocs/gfx/',
        'cgi-bin' => '/var/www/cgi-bin/',
        'bind-conf' => '/etc/',
        'bin' => '/usr/local/bin/',
        'bind-zones' => '/var/named/',
        'htdocs' => '/var/www/html/',
        'init.d' => '/etc/init.d/',
        'httpdconf' => '/etc/httpd/conf/',
        'html' => '/var/www/cgi-bin/html/',
        'scripts' => '/usr/local/netreg/scripts/',
        'config' => '/etc/dhcpd/',
        'apache base' => '/var/www/',
        'sbin' => '/usr/sbin/'
        );

The install_scripts however outputs the following:

About to install MASTER SERVER netreg.org (v2) files to the following
locations:
-----------------------------------------------------
admin => /var/www/cgi-bin/admin/
apache base => /var/www/
bin => /usr/local/bin/
bind-chroot => /var/named/
* bind-conf => /var/named/etc/
* bind-zones => /var/named/etc/namedb/
cgi-bin => /var/www/cgi-bin/
config => /etc/dhcpd/
* htdocs => /var/www/htdocs/
html => /var/www/cgi-bin/html/
* httpdconf => /var/www/conf/
* images => /var/www/htdocs/gfx/
init.d => /etc/init.d/
sbin => /usr/sbin/
* scripts => /var/www/htdocs/scripts/

* entries are incorrect.

I assume that this is just a minor flow in the logic of the PERL code.

Thanks in advance,

Lukasz Karapuda
Mercyhurst College, Web Technology
Phone 814.824.2034 : Email lkarap00@mercyhurst.edu

**********************************************************************
To unsubscribe from this list, send an e-mail message to
majordomo@southwestern.edu containing a single line with the words:
unsubscribe netreg
Send requests for assistance to: owner-netreg@southwestern.edu
**********************************************************************


New Message Reply Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:42 CDT