Commit e429204c authored by Adrian Rossouw's avatar Adrian Rossouw

use uname -n as the default server hostname.

parent d917c81f
......@@ -64,7 +64,7 @@ function hostmaster_bootstrap() {
$node = new stdClass();
$node->uid = 1;
$node->type = 'server';
$node->title = d()->uri;
$node->title = php_uname('n');
$node->status = 1;
$node->hosting_name = 'server_master';
$node->services = array();
......
......@@ -268,10 +268,10 @@ function hosting_update_6009() {
db_query("UPDATE {hosting_context} SET name='server_master' WHERE name='server_localhost'");
$server = hosting_context_load('@server_master');
$site = hosting_context_load('@hostmaster');
$uname = php_uname('n');
db_query("UPDATE {node} SET title='%s' WHERE nid=%d", $site->title, $server->nid);
db_query("UPDATE {node_revisions} SET title='%s' WHERE nid=%d", $site->title, $server->nid);
db_query("UPDATE {node} SET title='%s' WHERE nid=%d", $uname, $server->nid);
db_query("UPDATE {node_revisions} SET title='%s' WHERE nid=%d", $uname, $server->nid);
hosting_add_task($server->nid, 'verify');
......
<?php
class hostingService_http extends hostingService {
protected $service = 'http';
public $service = 'http';
}
......
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