X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fsbin%2Frt-setup-database.in;h=cf607e2866144f24cd98f3bdeb67ea85bc12f750;hb=947c1f964f1304242f8a6ffabacccf040f1d505e;hp=a20a73eb092fbb60852610bfa3b833e5f8170f60;hpb=ef20b2b6b1feb47ad02b5ff7525f1a0fd11d0fa4;p=freeside.git diff --git a/rt/sbin/rt-setup-database.in b/rt/sbin/rt-setup-database.in index a20a73eb0..cf607e286 100644 --- a/rt/sbin/rt-setup-database.in +++ b/rt/sbin/rt-setup-database.in @@ -160,6 +160,9 @@ elsif ( $args{'action'} eq 'drop' ) { } drop_db(); } +elsif ( $args{'action'} eq 'insert_initial' ) { + insert_initial_data(); +} elsif ( $args{'action'} eq 'insert' ) { insert_data( $args{'datafile'} || ($args{'datadir'}."/content") ); } @@ -583,7 +586,7 @@ sub insert_data { my ($return,$msg) = $new_entry->Create(%$item); unless ($return) { print "(Error: $msg)\n"; - exit; + next; } print $return. "."; } @@ -599,7 +602,7 @@ sub insert_data { my ($return,$msg) = $new_entry->Create(%$item); unless ($return) { print "(Error: $msg)\n"; - exit; + next; } print $return. "."; } @@ -677,7 +680,9 @@ $0: Set up RT's database --action init Initialize the database drop Drop the database. This will ERASE ALL YOUR DATA - insert Insert data into RT's database. + insert_initial + Insert RT's core system objects + insert Insert data into RT's database. By default, will use RT's installation data. To use a local or supplementary datafile, specify it using the '--datafile' option below.