fixed #2116; needs testing

This commit is contained in:
fgerlits 2007-01-18 10:30:51 +00:00
parent 1a35e8d6b8
commit 8ea66df5c9
3 changed files with 13 additions and 4 deletions

View file

@ -443,6 +443,14 @@ if [ "$storage_is_local" = "yes" ]; then
fi fi
#-------------------------------------------------------------------------------
# Update the database, if necessary
#-------------------------------------------------------------------------------
if [ "$storage_is_local" = "yes" ]; then
php -q $install_var_ls/storageServer/var/install/upgrade/upgrade.php
fi
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Say goodbye # Say goodbye
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------

View file

@ -26,9 +26,9 @@ echo "**********************************\n";
echo "* StorageServer Upgrade to 1.2.0 *\n"; echo "* StorageServer Upgrade to 1.2.0 *\n";
echo "**********************************\n"; echo "**********************************\n";
require_once('../../conf.php'); require_once(dirname(__FILE__).'/../../conf.php');
require_once("../installInit.php"); require_once(dirname(__FILE__)."/../installInit.php");
require_once("../../StoredFile.php"); require_once(dirname(__FILE__)."/../../StoredFile.php");
// Check to see if upgrade has already been applied // Check to see if upgrade has already been applied
$sql = "SELECT md5 FROM ".$CC_CONFIG['filesTable']." LIMIT 1"; $sql = "SELECT md5 FROM ".$CC_CONFIG['filesTable']." LIMIT 1";
@ -80,4 +80,4 @@ echo "*******************************************\n";
echo "* StorageServer Upgrade to 1.2.0 Complete *\n"; echo "* StorageServer Upgrade to 1.2.0 Complete *\n";
echo "*******************************************\n"; echo "*******************************************\n";
?> ?>

View file

@ -0,0 +1 @@
upgrade-to-1.2.0.php