Fix path for the feed table creation, and also create syncable table

tags/0.2.9_el5 0.2.9_el5
Daniel Berteaud 11 years ago
parent 7205d5ce1d
commit 3c33436caf
  1. 4
      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 $user = ${'pydio'}{'DbUser'} || 'pydio';
my $pass = ${'pydio'}{'DbPassword'} || 'secret'; 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"; $OUT .= <<"END";
#! /bin/sh #! /bin/sh
if [ ! -d /var/lib/mysql/$db ]; then if [ ! -d /var/lib/mysql/$db ]; then
/usr/bin/mysql -e 'create database $db' /usr/bin/mysql -e 'create database $db'
/usr/bin/mysql $db < $feed /usr/bin/mysql $db < $feed
/usr/bin/mysql $db < $syncable
if [ -e /var/lib/mysql/ajaxplorer ]; then if [ -e /var/lib/mysql/ajaxplorer ]; then
/usr/bin/mysqldump --add-drop-table ajaxplorer | /usr/bin/mysql $db /usr/bin/mysqldump --add-drop-table ajaxplorer | /usr/bin/mysql $db
/usr/bin/mysqladmin -f drop ajaxplorer /usr/bin/mysqladmin -f drop ajaxplorer

Loading…
Cancel
Save