Line 252... |
Line 252... |
252 |
# if subroutine &postInstall exists, it is called with a reference to the %install hash
|
252 |
# if subroutine &postInstall exists, it is called with a reference to the %install hash
|
253 |
# postInstall may return, or may call some other script. it is the last thing called by
|
253 |
# postInstall may return, or may call some other script. it is the last thing called by
|
254 |
# the installer
|
254 |
# the installer
|
255 |
sub postInstall {
|
255 |
sub postInstall {
|
256 |
my $install = shift;
|
256 |
my $install = shift;
|
- |
|
257 |
my $quiet = shift;
|
257 |
|
258 |
|
258 |
# We need to open sysinfoconf so we can build the configuration file
|
259 |
# We need to open sysinfoconf so we can build the configuration file
|
259 |
# using eval, since the installer is responsible for loading YAML::Tiny, so we may not
|
260 |
# using eval, since the installer is responsible for loading YAML::Tiny, so we may not
|
260 |
# have it defined when we first start up.
|
261 |
# have it defined when we first start up.
|
261 |
eval( 'use sysinfoconf qw/&writeConfig &makeConfig &showConf/;' );
|
262 |
eval( 'use sysinfoconf qw/&writeConfig &makeConfig &showConf/;' );
|
Line 290... |
Line 291... |
290 |
# We should have a nice combined configuration, so we'll write it to a temporary file
|
291 |
# We should have a nice combined configuration, so we'll write it to a temporary file
|
291 |
my $filename = &writeConfig( '', &showConf( $config ) );
|
292 |
my $filename = &writeConfig( '', &showConf( $config ) );
|
292 |
my $confFileName = $install{'configuration'}{'configuration file'};
|
293 |
my $confFileName = $install{'configuration'}{'configuration file'};
|
293 |
# configure.pl is already designed to combine our temp file with our current config file and write it ou
|
294 |
# configure.pl is already designed to combine our temp file with our current config file and write it ou
|
294 |
# so we'll just use that instead of reinventing the wheel
|
295 |
# so we'll just use that instead of reinventing the wheel
|
- |
|
296 |
if ( $quiet ) {
|
- |
|
297 |
print "Verify configuration by executing \n$install{bindir}/configure.pl -f $filename -o $confFileName\n"
|
- |
|
298 |
} else {
|
295 |
exec( "$install{bindir}/configure.pl -f $filename -o $confFileName" );
|
299 |
exec( "$install{bindir}/configure.pl -f $filename -o $confFileName" );
|
- |
|
300 |
}
|
296 |
} # if we are building/merging configuration
|
301 |
} # if we are building/merging configuration
|
297 |
}
|
302 |
}
|