Permalink
Browse files

mbzdb will now create the mbdump and replication folders on run inste…

…ad of relying on git. This will also make it easier for upgrades. The language chooser in firstboot.pl has been reset.
  • Loading branch information...
1 parent 8456864 commit 7425cf6ea2dd8faf5089cac991f87d5214eaf8af @chancemedia chancemedia committed Jun 30, 2010
Showing with 16 additions and 7 deletions.
  1. +2 −0 init.pl
  2. +0 −4 mbdump/.gitignore
  3. +0 −1 mbdump/blank.file
  4. +2 −2 src/firstboot.pl
  5. +10 −0 src/functions.pl
  6. +2 −0 update.pl
View
@@ -5,6 +5,8 @@
require "backend/$g_db_rdbms.pl";
require "src/functions.pl";
+mbz_create_folders();
+
# TODO: There is an issue with some of the CREATE UNIQUE INDEXs on table columns that are not unique
# name (select count(1) - count(distinct ?) from ?)
# artistalias_nameindex 20 duplicates
View
@@ -1,4 +0,0 @@
-.AppleDouble*
-:*
-!blank.file
-!.gitignore
View
@@ -1 +0,0 @@
-blank.file
View
@@ -1,6 +1,6 @@
# First boot
-$g_chosenlanguage = 1;
-$g_firstboot = 1;
+$g_chosenlanguage = 0;
+$g_firstboot = 0;
# Language
$g_language = 'English';
View
@@ -836,5 +836,15 @@ sub mbz_update_schema {
}
+# mbz_create_folders()
+# Create the required mbdump/ and replication/ folders if they do not exist
+# @return Always 1.
+sub mbz_create_folders {
+ mkdir("mbdump");
+ mkdir("replication");
+ return 1;
+}
+
+
# be nice
return 1;
View
@@ -15,6 +15,8 @@
require "backend/$g_db_rdbms.pl";
require "src/functions.pl";
+mbz_create_folders();
+
# require plugin files
foreach my $plugin (@g_active_plugins) {
require "plugins/$plugin.pl";

0 comments on commit 7425cf6

Please sign in to comment.