add debug

This commit is contained in:
Jakobus Schürz 2021-02-07 21:17:35 +01:00
parent 03a09069c6
commit 4eafc733d8

View file

@ -82,6 +82,10 @@ if ! $SSHS; then
# Start tmux if not defined as STARTTMUX in bashrc # Start tmux if not defined as STARTTMUX in bashrc
logwarn -n "attach tmux?" logwarn -n "attach tmux?"
logwarn "TMUX: $TMUX"
logwarn "SSH_TTY: $SSH_TTY"
logwarn "TERM: $TERM"
logwarn "tmux@${USER}: $(systemctl status tmux@${USER}.service 1>/dev/null 2>&1; echo $? )"
if test ! $TMUX && test $SSH_TTY && test $TERM != screen && test $(systemctl status tmux@${USER}.service 1>/dev/null 2>&1; echo $? ) -eq 0; then if test ! $TMUX && test $SSH_TTY && test $TERM != screen && test $(systemctl status tmux@${USER}.service 1>/dev/null 2>&1; echo $? ) -eq 0; then
: # STARTTMUXDEFAULT=${STARTTMUXREMOTEDEFAULT} : # STARTTMUXDEFAULT=${STARTTMUXREMOTEDEFAULT}
else else