[Rt-commit] r12338 - in rt/branches/3.8-TESTING: . share/html/installation
sartak at bestpractical.com
sartak at bestpractical.com
Thu May 15 07:14:09 EDT 2008
Author: sartak
Date: Thu May 15 07:13:56 2008
New Revision: 12338
Modified:
rt/branches/3.8-TESTING/ (props changed)
rt/branches/3.8-TESTING/lib/RT/Installer.pm
rt/branches/3.8-TESTING/share/html/installation/Finish.html
Log:
r55884 at onn: sartak | 2008-05-15 07:13:47 -0400
List the full path of the config file in the finish page; make the config file a method in RT::Installer
Modified: rt/branches/3.8-TESTING/lib/RT/Installer.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Installer.pm (original)
+++ rt/branches/3.8-TESTING/lib/RT/Installer.pm Thu May 15 07:13:56 2008
@@ -246,11 +246,15 @@
return { map { $_ => CurrentValue($_) } @types };
}
+sub ConfigFile {
+ require File::Spec;
+ return File::Spec->catfile($RT::EtcPath, 'RT_SiteConfig.pm');
+}
sub SaveConfig {
+ my $class = shift;
- require File::Spec;
- my $file = File::Spec->catfile($RT::EtcPath, 'RT_SiteConfig.pm');
+ my $file = $class->ConfigFile;
if ( open my $fh, '>', $file ) {
for ( keys %{$RT::Installer->{InstallConfig}} ) {
Modified: rt/branches/3.8-TESTING/share/html/installation/Finish.html
==============================================================================
--- rt/branches/3.8-TESTING/share/html/installation/Finish.html (original)
+++ rt/branches/3.8-TESTING/share/html/installation/Finish.html Thu May 15 07:13:56 2008
@@ -57,8 +57,8 @@
</p>
<p>
-All the config stuff is stored in etc/RT_SiteConfig.pm, if you want to
-prevent it from being modified, `chmod -w etc/RT_SiteConfig.pm' will lock
+All the config stuff is stored in <% RT::Installer->ConfigFile %>, if you want to
+prevent it from being modified, `chmod -w <% RT::Installer->ConfigFile %>' will lock
it as you want.
</p>
</div>
More information about the Rt-commit
mailing list