fixed missing / in rootpath definition
This commit is contained in:
+29
-29
@@ -1,29 +1,29 @@
|
|||||||
#!/usr/bin/php
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* For license information see doc/license.txt
|
* For license information see doc/license.txt
|
||||||
*
|
*
|
||||||
* Unicode Reminder メモ
|
* Unicode Reminder メモ
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* update of static data and triggers in developer system
|
* update of static data and triggers in developer system
|
||||||
*
|
*
|
||||||
* Tables must be updated manually, see htdocs/doc/sql/db-changes.txt
|
* Tables must be updated manually, see htdocs/doc/sql/db-changes.txt
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$rootpath = dirname(__FILE__) . '/..';
|
$rootpath = dirname(__FILE__) . '/../';
|
||||||
require($rootpath . '/htdocs/lib/settings.inc.php');
|
require($rootpath . 'htdocs/lib/settings.inc.php');
|
||||||
|
|
||||||
echo "importing data.sql ...\n";
|
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";
|
echo "importing triggers ...\n";
|
||||||
chdir ($rootpath . '/htdocs/doc/sql/stored-proc');
|
chdir ($rootpath . 'htdocs/doc/sql/stored-proc');
|
||||||
system('php maintain.php');
|
system('php maintain.php');
|
||||||
|
|
||||||
echo "resettings webcache ...\n";
|
echo "resettings webcache ...\n";
|
||||||
chdir ($rootpath . "/bin");
|
chdir ($rootpath . "bin");
|
||||||
system('php clear-webcache.php');
|
system('php clear-webcache.php');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user