Browse Source

stdout logging for non-privilege user to serv this manager

master^2
kuzukami.sh 1 year ago
committed by 葛上 昌司
parent
commit
f1234a73b3
  1. 7
      ssh-tunnel-manager.sh

7
ssh-tunnel-manager.sh

@ -228,7 +228,12 @@ fi
function echotime
{
TIME=`date "+[%Y-%m-%d %H:%M:%S]"`
echo -e "$TIME - $@" >>$LOGFILE
if [ -z "$LOGFILE" ]; then
#stdout for non-privileged user on systemd
echo -e "$TIME - $@"
else
echo -e "$TIME - $@" >>$LOGFILE
fi
}
#

Loading…
Cancel
Save