shell-host/apps/keepassxc/keepassxc-ssh-unlock.sh

15 lines
466 B
Bash
Executable File

#!/bin/bash
_dir="$(dirname $(realpath "${BASH_SOURCE:-$0}"))"
if systemctl --user cat ssh-agent &> /dev/null ; then
echo starting user ssh-agent
systemctl --user restart ssh-agent
echo agent socket should be ssh-agent.sock not keyring
env | grep SSH_AUTH
echo sourcing ssh-agent properties at $HOME/ssh-agent.properties
cat $HOME/ssh-agent.properties
source $HOME/ssh-agent.properties
$_dir/keepassxc-unlock.sh "$@"
else
no ssh-agent service file for user $USER
fi