Add pam_exec-ssh
This commit is contained in:
19
install
19
install
@ -1,10 +1,10 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
repo_dir=$(readlink -f $(dirname "$0"))
|
||||
|
||||
link() {
|
||||
[ -L "~/.config" ] || return 0
|
||||
|
||||
repo_dir=$(readlink -f $(dirname "$0"))
|
||||
|
||||
for file in ".profile" ".zprofile" ".config"; do
|
||||
ln -sf "$repo_dir/$file" "~/$file"
|
||||
done
|
||||
@ -59,6 +59,19 @@ install() {
|
||||
[ -d "/usr/share/themes/Nova" ] || sudo git clone \
|
||||
https://git.vimium.com/jordan/gtk-nova-theme.git \
|
||||
/usr/share/themes/Nova
|
||||
|
||||
[ -x "/usr/bin/pam_exec-ssh" ] || {
|
||||
sudo install -m755 \
|
||||
"$repo_dir/.config/ssh-agent/pam_exec-ssh" \
|
||||
/usr/bin/pam_exec-ssh
|
||||
mkdir ~/.ssh/unlock.d
|
||||
ln -s ~/.ssh/id_ed25519 ~/.ssh/unlock.d/id_ed25519
|
||||
}
|
||||
}
|
||||
|
||||
install && link
|
||||
configure() {
|
||||
systemctl --user enable ssh-agent
|
||||
systemctl --user enable sway
|
||||
}
|
||||
|
||||
install && link && configure
|
||||
|
Reference in New Issue
Block a user