forked from extern/egroupware
try fixing Travis install of multiple dbs
This commit is contained in:
parent
427620e9c4
commit
8a60c2bc23
@ -62,6 +62,7 @@ before_script:
|
||||
# create data directory
|
||||
- sudo mkdir /var/lib/egroupware
|
||||
- sudo chown travis /var/lib/egroupware
|
||||
- ln -s /var/lib/egroupware/header.inc.php
|
||||
|
||||
script:
|
||||
# install egroupware using MariaDB as domain "default"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/php
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
/**
|
||||
* EGroupware - RPM post install: automatic install or update EGroupware
|
||||
@ -16,7 +16,7 @@ if (php_sapi_name() !== 'cli') // security precaution: forbit calling post_insta
|
||||
$verbose = false;
|
||||
$config = array(
|
||||
'php' => PHP_BINARY,
|
||||
'source_dir' => '/usr/share/egroupware',
|
||||
'source_dir' => realpath(__DIR__.'/../..'),
|
||||
'data_dir' => '/var/lib/egroupware',
|
||||
'header' => '$data_dir/header.inc.php', // symlinked to source_dir by rpm
|
||||
'setup-cli' => '$source_dir/setup/setup-cli.php',
|
||||
@ -404,7 +404,8 @@ if (!isset($GLOBALS['egw_domain']) || $config['domain'] !== 'default' && !isset
|
||||
|
||||
if (empty($config['db_root_pw']))
|
||||
{
|
||||
echo "*** Database has no root password set, please fix that immediatly: mysqladmin -u root password NEWPASSWORD\n\n";
|
||||
echo "*** Database has no root password set, please fix that immediatly".
|
||||
(substr($config['db_type'], 0, 5) === 'mysql' ? ": mysqladmin -u root password NEWPASSWORD\n\n" : "!\n\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user