Page MenuHomeDevCentral

Restore TC2 .nginx server add feature for Ysul
Closed, ResolvedPublic

Description

Add a vhost on Ysul doesn't work, some variables from the registry are missing. I'm not sure templates are at the same path by the way.

Event Timeline

dereckson triaged this task as Normal priority.EditedJun 11 2015, 12:15
dereckson updated the task description. (Show Details)
dereckson added a project: Servers.

Let's migrate registry keys:

foreach row [sql "SELECT data,value FROM registry WHERE data LIKE \"tc2.grip%\""] {
    foreach {data value} $row {}
    if {$data != "tc2.grip.usergroups"} {
        registry set [string map {grip ysul} $data] $value
    }
}

Some files are indeed missing:

$ ls /usr/local/etc/nginx/templates/vhost.tpl
ls: /usr/local/etc/nginx/templates/vhost.tpl: No such file or directory
dereckson added a project: Dæghrefn.

Key migrated, templates reimported.