mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
firmwre: make this clearer
Ideally, opnsense-update -M should replace this except that -M is used to gain mirror access from other scripts as well. Need to think about it.
This commit is contained in:
parent
c0a1fd321d
commit
2fe4de6819
@ -32,7 +32,7 @@ $metafile = '/usr/local/opnsense/version/core';
|
||||
$ret = json_decode(@file_get_contents($metafile), true);
|
||||
if ($ret != null) {
|
||||
$ret['product_crypto'] = trim(shell_exec('opnsense-version -f'));
|
||||
$ret['product_mirror'] = preg_replace('/\/[a-z0-9]{8}(-[a-z0-9]{4}){3}-[a-z0-9]{12}\//i', '/subscription-key/', trim(shell_exec('opnsense-update -M')));
|
||||
$ret['product_mirror'] = preg_replace('/\/[a-z0-9]{8}(-[a-z0-9]{4}){3}-[a-z0-9]{12}\//i', '/${SUBSCRIPTION}/', trim(shell_exec('opnsense-update -M')));
|
||||
$ret['product_time'] = date('D M j H:i:s T Y', filemtime('/usr/local/opnsense/www/index.php'));
|
||||
$repos = explode("\n", trim(shell_exec('opnsense-verify -l')));
|
||||
sort($repos);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user