From 5f317c8d5754e2b03019ce8f9a2089d743c76b81 Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Sat, 28 May 2016 13:25:01 +1000 Subject: [PATCH] Allow {time} in warning reason --- README.asciidoc | 2 +- tools/arkmanager | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.asciidoc b/README.asciidoc index a6a68e3..07b896e 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -377,7 +377,7 @@ The following options can be overridden on a per-instance basis: Valid in `msgWarnReason`, replaced at runtime with the appropriate `msgReason*` template `{time}`;; - Valid in `msgWarnReason`, replaced at runtime with the appropriate `msgTime*` template + Valid in `msgWarnReason` and `msgReason*`, replaced at runtime with the appropriate `msgTime*` template `{modnamesupdate}`;; Valid in `msgReason*Mod`, replaced at runtime with a comma-delimited list of updated mod names diff --git a/tools/arkmanager b/tools/arkmanager index d5488e1..2d4775c 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -988,6 +988,7 @@ printWarnMessage(){ reason="maintenance" fi fi + reason="${reason//\{time\}/${msgtime}}" reason="${reason//\{modnamesupdated\}/${modnamesupdated}}" msg="${msg//\{reason\}/${reason}}" printf "%s\n" "$msg"