-update install/uninstall scripts

This commit is contained in:
martin 2011-01-26 18:12:51 -05:00
parent 0f786c5290
commit ae274b09dc
3 changed files with 14 additions and 14 deletions

View file

@ -44,7 +44,7 @@ foreach($lines as $key => $line){
fclose($fp); fclose($fp);
echo "******************************* Install Begin ********************************\n"; echo "******************************** Install Begin *********************************\n";
echo " *** Database Installation ***\n"; echo " *** Database Installation ***\n";
@ -225,9 +225,13 @@ install_setDirPermissions($CC_CONFIG["storageDir"]);
echo " * Importing sample audio clips \n"; echo " * Importing sample audio clips \n";
$command = __DIR__."/../utils/airtime-import --copy ../audio_samples/ > /dev/null"; $command = __DIR__."/../utils/airtime-import --copy ../audio_samples/ > /dev/null";
@exec($command, $output, $results); @exec($command, $output, $results);
echo "****************************** Database Install Complete ******************************\n";
$command = "python ".__DIR__."/../pypo/install/pypo-install.py"; $command = "python ".__DIR__."/../pypo/install/pypo-install.py";
$output = array();
@exec($command, $output, $results); @exec($command, $output, $results);
//print_r($output); foreach ($output as $value){
echo $value."\n";
}
echo "******************************* Install Complete *******************************\n";
?> ?>

View file

@ -21,9 +21,7 @@ if(exec("whoami") != "root"){
} }
echo "***************************\n"; echo "******************************* Uninstall Begin ********************************\n";
echo "* StorageServer Uninstall *\n";
echo "***************************\n";
require_once(dirname(__FILE__).'/../application/configs/conf.php'); require_once(dirname(__FILE__).'/../application/configs/conf.php');
require_once(dirname(__FILE__).'/installInit.php'); require_once(dirname(__FILE__).'/installInit.php');
@ -226,11 +224,11 @@ if ($results == 0) {
airtime_uninstall_delete_files($CC_CONFIG['storageDir']); airtime_uninstall_delete_files($CC_CONFIG['storageDir']);
echo "************************************\n";
echo "* StorageServer Uninstall Complete *\n";
echo "************************************\n";
$command = "python ".__DIR__."/../pypo/install/pypo-uninstall.py"; $command = "python ".__DIR__."/../pypo/install/pypo-uninstall.py";
$output = array();
@exec($command, $output, $results); @exec($command, $output, $results);
//print_r($output); foreach ($output as $value){
echo $value."\n";
}
echo "****************************** Uninstall Complete ******************************\n";
?> ?>

View file

@ -150,9 +150,7 @@ try:
print output print output
if not found: if not found:
print "Install has completed, but daemontools is not running, please make sure you have it installed and then reboot." print "Pypo install has completed, but daemontools is not running, please make sure you have it installed and then reboot."
else:
print "Install complete."
except Exception, e: except Exception, e:
print "exception:" + str(e) print "exception:" + str(e)