[Rt-commit] [rtir] 01/02: Bail out from make initdb early if RT::IR isn't in Plugins
Shawn Moore
shawn at bestpractical.com
Thu May 12 11:59:48 EDT 2016
This is an automated email from the git hooks/post-receive script.
shawn pushed a commit to branch 3.4/initdb-bailout
in repository rtir.
commit 21c9fd10022ce28c5b644b288b727777e47e7aca
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Thu May 12 15:52:58 2016 +0000
Bail out from make initdb early if RT::IR isn't in Plugins
Without this, you get a boatload of errors and it's not clear how to
proceed. Furthermore, previous versions of the README said to add
RT::IR to Plugins _after_ make initdb, so this protects users from a
real trap.
Fixes: I#31961
---
etc/initialdata | 3 +++
1 file changed, 3 insertions(+)
diff --git a/etc/initialdata b/etc/initialdata
index b09c634..6c23f24 100644
--- a/etc/initialdata
+++ b/etc/initialdata
@@ -1,5 +1,8 @@
# Initial data for a fresh RTIR Installation.
+die "Please add RT::IR to your Plugins configuration before initializing the database. See README for more information."
+ unless grep { $_ eq 'RT::IR' } RT->Config->Get('Plugins');
+
@Initial = (
sub {
use RT::IR;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list