Add VERBOSE message for the IS_TMOUTPROFILE check

This commit is contained in:
Tristan PILAT 2019-03-22 14:53:59 +01:00
parent de487e964c
commit 954eaf5e28
1 changed files with 3 additions and 0 deletions

View File

@ -155,6 +155,9 @@ fi
if [ "$IS_TMOUTPROFILE" = 1 ]; then
grep -q TMOUT= /etc/skel/.profile /root/.profile || echo 'IS_TMOUTPROFILE FAILED!'
if [[ "$VERBOSE" == 1 ]]; then
echo "In order to fix, add 'export TMOUT=36000' to both /etc/skel/.profile and /root/.profile files"
fi
fi