added okapi update script

This commit is contained in:
following
2013-05-08 16:11:27 +02:00
parent 4e2e30f530
commit f71d9b6e55
3 changed files with 38 additions and 4 deletions
+7 -4
View File
@@ -14,19 +14,22 @@
chdir($rootpath);
require_once('lib2/cli.inc.php');
echo "updating db structure ...\n";
echo "updating db structure\n";
require('dbsv-update.php');
echo "importing data.sql ...\n";
echo "importing data.sql\n";
system('cat ' . $rootpath . 'doc/sql/static-data/data.sql |' .
' mysql -h' . $opt['db']['servername'] . ' -u' . $opt['db']['username'] . ' --password=' . $opt['db']['password'] . ' ' . $opt['db']['placeholder']['db']);
echo "importing triggers ...\n";
echo "importing triggers\n";
chdir ($rootpath . 'doc/sql/stored-proc');
system('php maintain.php');
echo "resettings webcache ...\n";
echo "updating OKAPI database\n";
chdir ($rootpath . '../bin');
system('php okapi-update.php | grep -i -e mutation');
echo "resetting webcache:\n";
system('php clear-webcache.php');
?>