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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user