X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FSetup.pm;h=13d6f60b1eaf7d10046c80b64c6605e7bfab0df0;hb=158103c8701d8cd87148c579dc101979c808b8c2;hp=f8c59c5da90ecc36d6521dc563532c28236dc2cd;hpb=63a268637b2d51a8766412617724b9436439deb6;p=freeside.git diff --git a/FS/FS/Setup.pm b/FS/FS/Setup.pm index f8c59c5da..13d6f60b1 100644 --- a/FS/FS/Setup.pm +++ b/FS/FS/Setup.pm @@ -53,6 +53,8 @@ sub create_initial_data { populate_access(); populate_msgcat(); + + populate_numbering(); if ( $oldAutoCommit ) { dbh->commit or die dbh->errstr; @@ -60,6 +62,11 @@ sub create_initial_data { } +sub populate_numbering { + eval "use FS::lata_Data;"; # this automatically populates the lata table, if unpopulated + eval "use FS::msa_Data;"; # this automatically populates the msa table, if unpopulated +} + sub populate_locales { use Locale::Country; @@ -153,7 +160,7 @@ sub populate_initial_data { die $@ if $@; $class->_populate_initial_data(%opt) - if $class->can('_populate_inital_data'); + if $class->can('_populate_initial_data'); my @records = @{ $data->{$table} }; @@ -181,6 +188,16 @@ sub initial_data { #tie my %hash, 'Tie::DxHash', tie my %hash, 'Tie::IxHash', + #bootstrap user + 'access_user' => [ + { 'username' => 'fs_bootstrap', + '_password' => 'changeme', #will trigger warning if you try to enable + 'last' => 'User', + 'first' => 'Bootstrap', + 'disabled' => 'Y', + }, + ], + #superuser group 'access_group' => [ { 'groupname' => 'Superuser' },