From 15f9a07f51d625b79783f9b8ece4f2287aa15a7f Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 9 Dec 2012 15:26:27 +0100 Subject: [PATCH] wrong rootpath --- bin/dbupdate.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/dbupdate.php b/bin/dbupdate.php index 1682ef8e..f3c35d30 100644 --- a/bin/dbupdate.php +++ b/bin/dbupdate.php @@ -12,14 +12,14 @@ * Tables must be updated manually, see htdocs/doc/sql/db-changes.txt */ - $rootpath = dirname(__FILE__) . '/../'; - require($rootpath . 'htdocs/lib/settings.inc.php'); + $rootpath = dirname(__FILE__) . '/../htdocs/'; + require($rootpath . 'lib/settings.inc.php'); echo "importing data.sql ...\n"; - system('cat ' . $rootpath . 'htdocs/doc/sql/static-data/data.sql | mysql -u' . $dbusername . ' --password=' . $dbpasswd . ' ' . $dbname); + system('cat ' . $rootpath . 'doc/sql/static-data/data.sql | mysql -u' . $dbusername . ' --password=' . $dbpasswd . ' ' . $dbname); echo "importing triggers ...\n"; - chdir ($rootpath . 'htdocs/doc/sql/stored-proc'); + chdir ($rootpath . 'doc/sql/stored-proc'); system('php maintain.php'); echo "resettings webcache ...\n";