Commit 99be6b20 authored by anarcat's avatar anarcat Committed by anarcat

don't hardcode /var/aegir, use $HOME as a default

parent 771e4181
......@@ -238,7 +238,7 @@ class provisionServer extends provisionEnvironment {
$options = array(
'--remote_host' => 'server: host name; default localhost',
'--script_user' => 'server: OS user name; default current user',
'--aegir_root' => 'server: Aegir root; default /var/aegir',
'--aegir_root' => 'server: Aegir root; default ' . getenv('HOME'),
'--master_url' => 'server: Hostmaster URL',
);
foreach (drush_command_invoke_all('provision_services') as $service => $default) {
......@@ -264,7 +264,7 @@ class provisionServer extends provisionEnvironment {
$this->type = 'server';
$this->setProperty('remote_host', 'localhost');
if ($this->name == '@server_localhost') {
$this->setProperty('aegir_root', '/var/aegir');
$this->setProperty('aegir_root', getenv('HOME'));
$this->setProperty('script_user', get_current_user());
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment