fixed missing / in rootpath definition

This commit is contained in:
ocoliver
2012-12-09 14:52:59 +01:00
parent b4312fe9cc
commit c80628e7b0
+5 -5
View File
@@ -12,18 +12,18 @@
* 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__) . '/../';
require($rootpath . 'htdocs/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 . 'htdocs/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 . 'htdocs/doc/sql/stored-proc');
system('php maintain.php');
echo "resettings webcache ...\n";
chdir ($rootpath . "/bin");
chdir ($rootpath . "bin");
system('php clear-webcache.php');
?>