3 #to allow initial insert
5 $FS::part_pkg::setup_hack = 1;
6 $FS::part_pkg::setup_hack = 1;
9 use vars qw($opt_d $opt_v);
11 use FS::UID qw(adminsuidsetup);
12 use FS::Setup qw(create_initial_data);
16 my $dbh = adminsuidsetup shift;
17 create_initial_data('domain' => $opt_d);
19 warn "Freeside initial data inserted - commiting transaction\n" if $opt_v;
21 $dbh->commit or die $dbh->errstr;
22 $dbh->disconnect or die $dbh->errstr;
24 warn "Database initialization committed successfully\n" if $opt_v;
27 die "Usage:\n freeside-create-initial-data -d domain.name [ -v ] user\n"