Write the customer key to disk.
Writing the customer key to disk allows other components without access to the database to download it. Ref. pandora_enterprise#8541.
This commit is contained in:
parent
35bcec046a
commit
a94f729237
|
@ -74,6 +74,9 @@ if ($update_settings) {
|
|||
);
|
||||
}
|
||||
|
||||
// Update the license file.
|
||||
file_put_contents($config["remote_config"] . '/' . LICENSE_FILE, $_POST['keys']['customer_key']);
|
||||
|
||||
ui_print_success_message(__('License updated'));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -857,3 +857,6 @@ define(
|
|||
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
|
||||
]
|
||||
);
|
||||
|
||||
// Pandora FMS Enterprise license.
|
||||
define('LICENSE_FILE', 'customer_key');
|
||||
|
|
Loading…
Reference in New Issue