Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 99c526886440bf5fcca0105aa2a4ad8cffdd087e 2 parents b840253 + 7425cf6
Elliot Chance authored
View
2  init.pl
@@ -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
4 mbdump/.gitignore
@@ -1,4 +0,0 @@
-.AppleDouble*
-:*
-!blank.file
-!.gitignore
View
1  mbdump/blank.file
@@ -1 +0,0 @@
-blank.file
View
4 src/firstboot.pl
@@ -1,6 +1,6 @@
# First boot
-$g_chosenlanguage = 1;
-$g_firstboot = 1;
+$g_chosenlanguage = 0;
+$g_firstboot = 0;
# Language
$g_language = 'English';
View
10 src/functions.pl
@@ -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
2  update.pl
@@ -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";
Please sign in to comment.
Something went wrong with that request. Please try again.