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".
This commit is contained in:
Lihis 2015-10-19 16:11:30 +03:00
parent 744d797a9e
commit 45c887f090

View File

@ -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