link instead of cat > write
This commit is contained in:
parent
eb8ee82a61
commit
ea015acdd8
1 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,9 @@ if [ -n "$SSH_AUTH_SOCK" ] && \
|
|||
chown $USER ~/.x2go/agentsocket
|
||||
# write file name of agent socket into file
|
||||
loginfo "old agentsock $( cat ~/.x2go/agentsocket)"
|
||||
echo $SSH_AUTH_SOCK > ~/.x2go/agentsocket
|
||||
#echo $SSH_AUTH_SOCK > ~/.x2go/agentsocket
|
||||
rm ~/.x2go/agentsocket
|
||||
ln -s $SSH_AUTH_SOCK ~/.x2go/agentsocket
|
||||
loginfo "write SSH_AUTH_SOCK (${SSH_AUTH_SOCK}) to ~/.x2go/agentsocket"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue