From 3c33436caf72991ea8ed27f61ffa7c24c0acdd65 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 19 Feb 2014 12:43:15 +0100 Subject: [PATCH] Fix path for the feed table creation, and also create syncable table --- root/etc/e-smith/templates/etc/e-smith/sql/init/pydio | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/root/etc/e-smith/templates/etc/e-smith/sql/init/pydio b/root/etc/e-smith/templates/etc/e-smith/sql/init/pydio index e32d4f3..fbb8894 100644 --- a/root/etc/e-smith/templates/etc/e-smith/sql/init/pydio +++ b/root/etc/e-smith/templates/etc/e-smith/sql/init/pydio @@ -3,13 +3,15 @@ my $db = ${'pydio'}{'DbName'} || 'pydio'; my $user = ${'pydio'}{'DbUser'} || 'pydio'; my $pass = ${'pydio'}{'DbPassword'} || 'secret'; -my $feed = "/usr/share/pydio/plugins/feed.sql/create.sql"; +my $feed = "/usr/share/pydio/plugins/feed.sql/create.mysql"; +my $syncable = "/usr/share/pydio/plugins/meta.syncable/create.mysql"; $OUT .= <<"END"; #! /bin/sh if [ ! -d /var/lib/mysql/$db ]; then /usr/bin/mysql -e 'create database $db' /usr/bin/mysql $db < $feed + /usr/bin/mysql $db < $syncable if [ -e /var/lib/mysql/ajaxplorer ]; then /usr/bin/mysqldump --add-drop-table ajaxplorer | /usr/bin/mysql $db /usr/bin/mysqladmin -f drop ajaxplorer