summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-25 22:06:30 +0100
committerSimon Rettberg2019-03-25 22:06:30 +0100
commit00740eba7b61af66d3cf9ac08779ee662cff4d4b (patch)
tree871e576ff85655f139f46fa486c733f1c09df9b1
parent[inc/Trigger] Fix Trigger::ipxe() when called multiple times (diff)
downloadslx-admin-00740eba7b61af66d3cf9ac08779ee662cff4d4b.tar.gz
slx-admin-00740eba7b61af66d3cf9ac08779ee662cff4d4b.tar.xz
slx-admin-00740eba7b61af66d3cf9ac08779ee662cff4d4b.zip
[inc/Event] autoUpdateIp first thing on bootup
Other stuff might depend on the proper serverIp
-rw-r--r--inc/event.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/event.inc.php b/inc/event.inc.php
index 0b84df16..16e5323a 100644
--- a/inc/event.inc.php
+++ b/inc/event.inc.php
@@ -24,6 +24,9 @@ class Event
Property::clearList('cron.key.status');
Property::clearList('cron.key.blocked');
+ // Do this before any hooks, might be used by some
+ $autoIp = Trigger::autoUpdateServerIp();
+
// Hooks
foreach (Hook::load('bootup') as $hook) {
// Isolate for local vars
@@ -37,7 +40,6 @@ class Event
// Tasks: fire away
$mountStatus = false;
- $autoIp = Trigger::autoUpdateServerIp();
$mountId = Trigger::mount();
$ldadpId = Trigger::ldadp();
$ipxeId = Trigger::ipxe();
@@ -108,7 +110,6 @@ class Event
*/
public static function serverIpChanged()
{
- error_log('Server ip changed');
Trigger::ipxe();
if (Module::isAvailable('sysconfig')) { // TODO: Modularize events
ConfigModule::serverIpChanged();