From d46e77b48aa42926b782b0209524d1835e8e55a5 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 24 Aug 2024 14:49:53 +0200 Subject: [PATCH] =?UTF-8?q?Install/Upgrade:=20am=C3=A9liore=20script,=20ma?= =?UTF-8?q?il=20si=20=C3=A9chec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/utils.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/utils.sh b/tools/utils.sh index a9ca54a46..665dfdccf 100644 --- a/tools/utils.sh +++ b/tools/utils.sh @@ -122,3 +122,14 @@ remove_install_status() { rm -f "${SCODOC_INSTALL_STATUS_FILE}" fi } + +# +alarm_admin() { + echo "Error: alarm_admin $1" + echo "Sending email to admin..." + echo "Subject: ScoDoc: $1" | mail -s "ScoDoc: $1" root <