mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
system: write version to make sure we can catch incompatibilities #2535
This commit is contained in:
parent
e66358562a
commit
a7f87559ca
@ -77,8 +77,13 @@ function decrypt_data(&$data, $pass)
|
||||
|
||||
function tagfile_reformat($in, &$out, $tag = 'config.xml')
|
||||
{
|
||||
global $g;
|
||||
|
||||
$version = strtok(file_get_contents('/usr/local/opnsense/version/opnsense'), '-');
|
||||
|
||||
$out = "---- BEGIN {$tag} ----\n";
|
||||
/* XXX older version assume these defaults */
|
||||
$out .= "Version: {$g['product_name']} {$version}\n";
|
||||
$out .= "Cipher: AES-256-CBC\n";
|
||||
$out .= "Hash: MD5\n\n";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user