|
@@ -45,19 +45,20 @@ class GravSetup extends BaseSetup {
|
|
|
|
|
|
|
|
if ( $options['admin'] == true ){
|
|
if ( $options['admin'] == true ){
|
|
|
chdir($this->getDocRoot());
|
|
chdir($this->getDocRoot());
|
|
|
- $php_version = $this -> appcontext -> getSupportedPHP($this -> config['server']['php']['supported']);
|
|
|
|
|
- $this -> appcontext -> runUser('v-run-cli-cmd', ["/usr/bin/php$php_version",
|
|
|
|
|
|
|
+
|
|
|
|
|
+ $this -> appcontext -> runUser('v-run-cli-cmd', ["/usr/bin/php".$options['php_version'],
|
|
|
$this->getDocRoot('/bin/gpm'),
|
|
$this->getDocRoot('/bin/gpm'),
|
|
|
'install admin'
|
|
'install admin'
|
|
|
], $status);
|
|
], $status);
|
|
|
- $this -> appcontext -> runUser('v-run-cli-cmd', ["/usr/bin/php$php_version",
|
|
|
|
|
|
|
+ $this -> appcontext -> runUser('v-run-cli-cmd', ["/usr/bin/php".$options['php_version'],
|
|
|
$this->getDocRoot('/bin/plugin'),
|
|
$this->getDocRoot('/bin/plugin'),
|
|
|
'login new-user',
|
|
'login new-user',
|
|
|
'-u '.$options['username'],
|
|
'-u '.$options['username'],
|
|
|
'-p '.$options['password'],
|
|
'-p '.$options['password'],
|
|
|
'-e '.$options['email'],
|
|
'-e '.$options['email'],
|
|
|
'-P a',
|
|
'-P a',
|
|
|
- '-N '.$options['username']
|
|
|
|
|
|
|
+ '-N '.$options['username'],
|
|
|
|
|
+ '-l en'
|
|
|
], $status);
|
|
], $status);
|
|
|
}
|
|
}
|
|
|
return ($status -> code === 1);
|
|
return ($status -> code === 1);
|