Added master and release update-channels

This commit is contained in:
Daniel Preussker
2015-11-22 17:06:21 +00:00
parent 45b6a4c558
commit b2034cb329
2 changed files with 14 additions and 1 deletions

View File

@@ -35,7 +35,17 @@ The ' . $config['project_name'] . ' team.';
exit(2);
}
else {
exit((int) $config['update']);
if ($config['update']) {
if ($config['update_channel'] == 'master') {
exit(1);
}
elseif ($config['update_channel'] == 'release') {
exit(3);
}
}
else {
exit(0);
}
}
}

View File

@@ -828,3 +828,6 @@ $config['availability-map-width'] = 25;
// Default notifications Feed
$config['notifications']['LibreNMS'] = 'http://www.librenms.org/notifications.rss';
// Update channel (Can be 'master' or 'release')
$config['update_channel'] = 'master';