Permalink
Browse files

Merge branch 'master' of github.com:chancemedia/mbzdb

  • Loading branch information...
2 parents b840253 + 7425cf6 commit 99c526886440bf5fcca0105aa2a4ad8cffdd087e Elliot Chance committed Jul 1, 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 99c5268

Please sign in to comment.