[Rt-commit] r16221 - rt/3.8/trunk/sbin

ruz at bestpractical.com ruz at bestpractical.com
Mon Oct 6 11:11:45 EDT 2008


Author: ruz
Date: Mon Oct  6 11:11:45 2008
New Revision: 16221

Modified:
   rt/3.8/trunk/sbin/rt-validator.in

Log:
* add usage warning

Modified: rt/3.8/trunk/sbin/rt-validator.in
==============================================================================
--- rt/3.8/trunk/sbin/rt-validator.in	(original)
+++ rt/3.8/trunk/sbin/rt-validator.in	Mon Oct  6 11:11:45 2008
@@ -85,6 +85,7 @@
 );
 
 usage() unless $opt{'check'};
+usage_warning() if $opt{'resolve'} && !$opt{'force'};
 
 sub usage {
     print STDERR <<END;
@@ -111,6 +112,19 @@
     exit 1;
 }
 
+sub usage_warning {
+    print <<END;
+This utility can fix some issues with DB by creating or updating. In some
+cases there is no enough data to resurect a missing record then records which
+refers to missing can be deleted. It's up to you to decide what to do.
+
+In any case it's highly recommended to have a backup before resolving anything.
+
+Press enter to continue.
+END
+    <>;
+}
+
 use RT;
 RT::LoadConfig();
 RT::Init();


More information about the Rt-commit mailing list