Merge pull request #504 from quietsy/swag-dashboard

Fix version checks
This commit is contained in:
aptalca 2022-09-24 08:33:00 -04:00 committed by GitHub
commit 6e6ddfb166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@
"subfolder.conf" => "https://github.com/linuxserver/reverse-proxy-confs/blob/master/",
"dashboard.subdomain.conf" => "https://github.com/linuxserver/docker-mods/blob/swag-dashboard/root/dashboard/",
);
$output = shell_exec("/etc/cont-init.d/70-templates");
$output = shell_exec("/etc/cont-init.d/85-version-checks");
foreach(explode(PHP_EOL, $output) as $line) {
if(substr($line, 0, 1) === "*"){
@ -153,7 +153,7 @@
$tr_class = ($counter % 2 == 0) ? 'shaded' : '';
$files .= '<tr class="'.$tr_class.'"><td class="left-text"><span class="status-text">'.htmlspecialchars($line).'</span></td>';
$file_name = substr($line, strrpos($line, '/') + 1);
$link = "https://github.com/linuxserver/docker-swag/blob/master/root/defaults/".$file_name;
$link = "https://github.com/linuxserver/docker-swag/blob/master/root/defaults/nginx/".$file_name;
foreach($conf_locations as $key=>$value) {
if (strpos($file_name, $key) !== false) {
$link = $value.$file_name;