Add SSH agent and socket setups to install script

This commit is contained in:
Evie Litherland-Smith 2023-01-12 15:27:06 +00:00
parent 3fcf63efdd
commit 5b4b49b6bd

View file

@ -36,6 +36,17 @@ do
create_symlink $CONFIG_DIR/systemd/user $FILE create_symlink $CONFIG_DIR/systemd/user $FILE
done done
# SSH agent
ssh_agent_export="export SSH_AUTH_SOCK=\"\$XDG_RUNTIME_DIR/ssh-agent.socket\""
if [ -e "$HOME/.profile" ]
then
grep "$ssh_agent_export" "$HOME/.profile" > /dev/null || echo "$ssh_agent_export" >> "$HOME/.profile"
fi
systemctl --user enable ssh-agent.service
# SSH sockets
mkdir -p "$HOME/.ssh/sockets"
# Install arch packages # Install arch packages
sudo pacman --needed -S $(awk '{print $1}' pacman.txt) || echo "Issue installing pacman packages" sudo pacman --needed -S $(awk '{print $1}' pacman.txt) || echo "Issue installing pacman packages"