mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
fixed PHP Warning: fclose(): 146 is not a valid stream resource in setup-cli.php --update
This commit is contained in:
parent
f49eaf39ce
commit
48a21f74de
@ -236,12 +236,11 @@ function do_backup($arg,$quite_check=false)
|
||||
}
|
||||
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 @@ function do_usage($what='')
|
||||
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')
|
||||
|
Loading…
Reference in New Issue
Block a user