projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
43d0de0
)
only run update on main server
author
Alan
<alan@roojs.com>
Fri, 11 Aug 2023 02:48:16 +0000
(10:48 +0800)
committer
Alan
<alan@roojs.com>
Fri, 11 Aug 2023 02:48:16 +0000
(10:48 +0800)
Notify.php
patch
|
blob
|
history
diff --git
a/Notify.php
b/Notify.php
index
09766fb
..
cbf4281
100644
(file)
--- a/
Notify.php
+++ b/
Notify.php
@@
-377,6
+377,14
@@
class Pman_Core_Notify extends Pman
return;
}
return;
}
+ if (!isset($ff->Core_Notify['servers'][gethostname()])) {
+ $this->jerr("Core_Notify['servers']['" . gethostname() ."'] is not set");
+ }
+ // only run this on the main server...
+ if (array_search(gethostname(),array_keys($ff->Core_Notify['servers'])) > 0) {
+ return;
+ }
+
$num_servers = count(array_keys($ff->Core_Notify['servers']));
$p = DB_DataObject::factory($this->table);
$p->whereAdd("
$num_servers = count(array_keys($ff->Core_Notify['servers']));
$p = DB_DataObject::factory($this->table);
$p->whereAdd("