[Rt-commit] r12836 - rt/branches/3.8-TESTING/lib/RT

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Jun 3 12:35:51 EDT 2008


Author: sunnavy
Date: Tue Jun  3 12:35:50 2008
New Revision: 12836

Modified:
   rt/branches/3.8-TESTING/lib/RT/Installer.pm

Log:
do not clobber document of RT_Site_Config.pm

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	Tue Jun  3 12:35:50 2008
@@ -257,6 +257,24 @@
     my $file = $class->ConfigFile;
 
     if ( open my $fh, '>', $file  ) {
+        print $fh <<EOF;
+# Any configuration directives you include  here will override 
+# RT's default configuration file, RT_Config.pm
+#
+# To include a directive here, just copy the equivalent statement
+# from RT_Config.pm and change the value. We've included a single
+# sample value below.
+#
+# This file is actually a perl module, so you can include valid
+# perl code, as well.
+#
+# The converse is also true, if this file isn't valid perl, you're
+# going to run into trouble. To check your SiteConfig file, use
+# this comamnd:
+#
+#   perl -c /path/to/your/etc/RT_SiteConfig.pm
+
+EOF
         for ( keys %{$RT::Installer->{InstallConfig}} ) {
             if (defined $RT::Installer->{InstallConfig}{$_}) {
                 print $fh "Set( \$$_, '$RT::Installer->{InstallConfig}{$_}' );\n";


More information about the Rt-commit mailing list