Skip to content

Commit 6e6ddfb

Browse files
authored
Merge pull request #504 from quietsy/swag-dashboard
Fix version checks
2 parents e1724ae + 35f97ec commit 6e6ddfb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

root/dashboard/www/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function GetTemplates() {
144144
"subfolder.conf" => "https://github.com/linuxserver/reverse-proxy-confs/blob/master/",
145145
"dashboard.subdomain.conf" => "https://github.com/linuxserver/docker-mods/blob/swag-dashboard/root/dashboard/",
146146
);
147-
$output = shell_exec("/etc/cont-init.d/70-templates");
147+
$output = shell_exec("/etc/cont-init.d/85-version-checks");
148148

149149
foreach(explode(PHP_EOL, $output) as $line) {
150150
if(substr($line, 0, 1) === "*"){
@@ -153,7 +153,7 @@ function GetTemplates() {
153153
$tr_class = ($counter % 2 == 0) ? 'shaded' : '';
154154
$files .= '<tr class="'.$tr_class.'"><td class="left-text"><span class="status-text">'.htmlspecialchars($line).'</span></td>';
155155
$file_name = substr($line, strrpos($line, '/') + 1);
156-
$link = "https://github.com/linuxserver/docker-swag/blob/master/root/defaults/".$file_name;
156+
$link = "https://github.com/linuxserver/docker-swag/blob/master/root/defaults/nginx/".$file_name;
157157
foreach($conf_locations as $key=>$value) {
158158
if (strpos($file_name, $key) !== false) {
159159
$link = $value.$file_name;

0 commit comments

Comments
 (0)