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:
Ramon Novoa 2022-03-31 13:21:22 +02:00
parent 35bcec046a
commit a94f729237
2 changed files with 6 additions and 0 deletions

View File

@ -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'));
}
}

View File

@ -857,3 +857,6 @@ define(
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
]
);
// Pandora FMS Enterprise license.
define('LICENSE_FILE', 'customer_key');