mirror of https://github.com/MISP/MISP
chg: [Console:admin] Allow `travis` user to bring the database up to date
parent
cf8d296f31
commit
2be36fb611
|
@ -315,7 +315,7 @@ class AdminShell extends AppShell
|
|||
|
||||
public function runUpdates() {
|
||||
$whoami = exec('whoami');
|
||||
if ($whoami === 'httpd' || $whoami === 'www-data' || $whoami === 'apache' || $whoami === 'wwwrun') {
|
||||
if ($whoami === 'httpd' || $whoami === 'www-data' || $whoami === 'apache' || $whoami === 'wwwrun' || $whoami === 'travis') {
|
||||
echo 'Executing all updates to bring the database up to date with the current version.' . PHP_EOL;
|
||||
$processId = $this->args[0];
|
||||
$this->Server->runUpdates(true, false, $processId);
|
||||
|
|
Loading…
Reference in New Issue