1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added notification settings feature

This commit is contained in:
Ylian Saint-Hilaire 2019-07-18 15:21:41 -07:00
parent b05af960d2
commit 73626f126c
6 changed files with 52 additions and 5 deletions

View file

@ -34,7 +34,7 @@ stop() {
pid=$( cat "$PIDFILE" )
if kill -0 $pid 2>/dev/null; then
echo 'Stopping service…' >&2
kill -16 $pid
kill -15 $pid
echo 'Service stopped' >&2
else
echo 'Service not running'

View file

@ -110,7 +110,7 @@ function AmtManager(agent, db, isdebug) {
}
// Sent to the entire group, no sessionid or userid specified.
if (notify != null) { agent.SendCommand({ "action": "msg", "type": "notify", "value": notify, "tag": "general" }); }
if (notify != null) { agent.SendCommand({ "action": "msg", "type": "notify", "value": notify, "tag": "general", "amtMessage": amtMessage }); }
}
// Launch LMS