R31958 - /trunk/setup/setup-cli.php

Author: ralfbecker
New Revision: 31958

URL: http://www.egroupware.org/viewvc/egroupware?rev=31958&view=rev
Log:
fixed PHP Warning: fclose(): 146 is not a valid stream resource in setup-cli.php --update

Modified:
trunk/setup/setup-cli.php

Modified: trunk/setup/setup-cli.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/setup/setup-cli.php?rev=31958&r1=31957&r2=31958&view=diff

— trunk/setup/setup-cli.php (original)
+++ trunk/setup/setup-cli.php Wed Sep 8 10:55:06 2010
@@ -236,12 +236,11 @@
}
else
{

  •   	$db_backup =& CreateObject('phpgwapi.db_backup');
    
  •   	$db_backup = new db_backup();
      	if (is_resource($f = $db_backup->fopen_backup($backup)))
      	{
      		echo lang('Backup started, this might take a few minutes ...')."\n";
      		$db_backup->backup($f);
    
  •   		fclose($f);
      		echo lang('Backup finished')."\n";
      	}
      	else	// backup failed ==> dont start the upgrade
    

@@ -507,7 +506,7 @@
echo '–admin '.lang(‘creates an admin user: domain(default),[config user(admin)],password,username,password,[first name],[last name],[email]’)."\n";
echo '–language '.lang(‘install or update translations: domain(all),[config user(admin)],password,[[+]lang1[,lang2,…]] + adds, no langs update existing ones’)."\n";
echo '–backup '.lang(‘domain(all),[config user(admin)],password,[file-name(default: backup-dir/db_backup-YYYYMMDDHHii)]’)."\n";

  •   echo '--update '.lang('run a database schema update (if necessary): domain(all),[config user(admin)],password')."\n";
    
  •   echo '--update '.lang('run a database schema update (if necessary): domain(all),[config user(admin)],password').'[,no = no backup]'."\n";
      echo lang('You can use the header user and password for every domain too. If the password is not set via the commandline, it is read from the enviroment variable EGW_CLI_PASSWORD or queried from the user.')."\n";
    
    }
    if (!$what || $what == ‘header’)

This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel® Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs