[Rt-commit] r12340 - in rt/branches/3.8-TESTING: bin

sartak at bestpractical.com sartak at bestpractical.com
Thu May 15 07:24:56 EDT 2008


Author: sartak
Date: Thu May 15 07:24:56 2008
New Revision: 12340

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/bin/standalone_httpd.in

Log:
 r55887 at onn:  sartak | 2008-05-15 07:23:44 -0400
 Die if the configuration exists but is unwritable


Modified: rt/branches/3.8-TESTING/bin/standalone_httpd.in
==============================================================================
--- rt/branches/3.8-TESTING/bin/standalone_httpd.in	(original)
+++ rt/branches/3.8-TESTING/bin/standalone_httpd.in	Thu May 15 07:24:56 2008
@@ -94,6 +94,11 @@
 
 EOF
 
+    # don't enter install mode if the file exists but is unwritable
+    if (-e RT::Installer->ConfigFile && !-w _) {
+        die "Since your configuration exists but is not writable, I'm refusing to do anything.\n";
+    }
+
     RT->InstallMode(1);
 } else {
     RT->ConnectToDatabase();


More information about the Rt-commit mailing list