From 00740eba7b61af66d3cf9ac08779ee662cff4d4b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 25 Mar 2019 22:06:30 +0100 Subject: [inc/Event] autoUpdateIp first thing on bootup Other stuff might depend on the proper serverIp --- inc/event.inc.php | 5 +++-- 1 file 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(); -- cgit v1.2.3-55-g7522