From 45c887f090d24a7d35bfead90add556e29c1d2a4 Mon Sep 17 00:00:00 2001 From: Lihis Date: Mon, 19 Oct 2015 16:11:30 +0300 Subject: [PATCH] Set TERM to "dumb" if TERM is not set Set environment variable TERM to "dumb" if it is not set. This suppresses errors from "tput", which are shown in eg. "systemctl status arkmanager.service". The error which tput gives without TERM set is "tput: No value for $TERM and no -T specified". --- tools/systemd/arkdaemon.init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/systemd/arkdaemon.init b/tools/systemd/arkdaemon.init index 2cde2ab..df83248 100755 --- a/tools/systemd/arkdaemon.init +++ b/tools/systemd/arkdaemon.init @@ -20,6 +20,9 @@ # ### END INIT INFO +# Set TERM to "dumb" if TERM is not set +export TERM=${TERM:-dumb} + # Global variables source /etc/arkmanager/arkmanager.cfg