HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: /volume1/@appstore/MailPlus-Server/hook/MailPlusServerIFComm.sh
#!/bin/bash
. /var/packages/MailPlus-Server/target/backend_hook/hookUtils.conf
updateNodeList()
{
	local nodeID="$(${MAILPLUS_SERVER_BACKEND_BINARY} --getHostID)"
	local nodeIPList="$(${MAILPLUS_SERVER_BACKEND_BINARY} --getHostIPList)"
	local key="node_ip_list-${nodeID}"

	if ! ${MAILPLUS_SERVER_BACKEND_BINARY} --setConfKeyVal "${key}" "${nodeIPList}"; then
		 err_log "[MailPlusServerIFaction] - Failed to update node ip list [${key}] to [${nodeIPList}] when interface up/down"
	fi
}