link instead of cat > write

This commit is contained in:
Jakobus Schürz 2020-09-30 00:37:25 +02:00
parent eb8ee82a61
commit ea015acdd8

View file

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