Add SSH agent and socket setups to install script
This commit is contained in:
parent
3fcf63efdd
commit
5b4b49b6bd
11
install.sh
11
install.sh
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue