Removing tmux.service -- accounted for in EtcFiles/profile.d/shadowarch-session.sh

Adding session dependence to Ansible
Ensuring EtcFiles/profile.d/shadowarch-ssh.sh starts ssh-agent user
service
This commit is contained in:
2024-03-30 14:32:43 -05:00
parent e3be67286d
commit 3253c180fc
6 changed files with 9 additions and 4 deletions

View File

@@ -1,5 +1,9 @@
### SSH ###
# Tell shell about ssh-agent -- enable with 'systemctl --user enable --now ssh-agent.service'
if [ `ps -u "$USER" | grep -c ssh-agent` -eq 0 ]; then
systemctl --user start ssh-agent.service
sleep 1
fi
export SSH_AGENT_PID="$(pgrep -fu "$USER" ssh-agent)"
if [ -n "$SSH_AGENT_PID" ]; then
export SSH_AUTH_SOCK="/run/user/$EUID/ssh-agent.socket"