diff options
author | Simon Rettberg | 2022-10-27 17:23:16 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-10-27 17:23:16 +0200 |
commit | 62b6d7560f36b538f216074af90f41fc0f98b0ce (patch) | |
tree | 85b79003a54df26a34264bc01e4b10a2e5dceb95 /modules-available/serversetup-bwlp-ipxe/inc/ipxebuilder.inc.php | |
parent | [statistics] Add machine state icon to hints tables (diff) | |
download | slx-admin-62b6d7560f36b538f216074af90f41fc0f98b0ce.tar.gz slx-admin-62b6d7560f36b538f216074af90f41fc0f98b0ce.tar.xz slx-admin-62b6d7560f36b538f216074af90f41fc0f98b0ce.zip |
[serversetup-bwlp-ipxe] Encode ipxe script depending on iPXE version
Newer iPXE versions require UTF-8
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/inc/ipxebuilder.inc.php')
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/inc/ipxebuilder.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/ipxebuilder.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/ipxebuilder.inc.php index d6633f67..3a82b4f7 100644 --- a/modules-available/serversetup-bwlp-ipxe/inc/ipxebuilder.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/inc/ipxebuilder.inc.php @@ -63,12 +63,14 @@ class IPxeBuilder if (isset($list['versions'])) { foreach ($list['versions'] as $v) { if ($v['hash'] === $version) { + // Do NOT change (see below) $version = date('Y-m-d H:i', $v['date']) . ' (' . substr($version, 0, 7) . ')'; break; } } } } + // Do NOT change the format of this string -- we depend on it in ScriptBuilderIpxe::output() $buildString = date('d.m.Y H:i') . ', Version: ' . $version; Property::set(IPxeBuilder::PROP_IPXE_BUILDSTRING, $buildString); } |