mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-15 21:02:30 +01:00
zero-system: fix keychain logic
This commit is contained in:
parent
e82e055c4e
commit
9607f2af4b
1 changed files with 9 additions and 6 deletions
|
|
@ -60,17 +60,20 @@ bindkey "\eOF" end-of-line
|
|||
|
||||
if [ "${USER}" != "root" ]; then
|
||||
keys=""
|
||||
if [ ! -r ~/.ssh/id_ed25519_sk_green ]; then
|
||||
printf "This system is missing your yk5cgreen primary key id_ed25519_sk_green\n"
|
||||
if [ -r ~/.ssh/id_ed25519_sk_green ]; then
|
||||
keys="~/.ssh/id_ed25519_sk_green"
|
||||
else
|
||||
printf "This system is missing your yk5cgreen primary key id_ed25519_sk_green\n"
|
||||
fi
|
||||
if [ ! -r ~/.ssh/id_ed25519_sk_red ]; then
|
||||
printf "This system is missing your yk5cred backup key id_ed25519_sk_red\n"
|
||||
if [ -r ~/.ssh/id_ed25519_sk_red ]; then
|
||||
keys="${keys} ~/.ssh/id_ed25519_sk_red"
|
||||
else
|
||||
printf "This system is missing your yk5cred backup key id_ed25519_sk_red\n"
|
||||
fi
|
||||
if [ ! -r ~/.ssh/gentoo_rsa ]; then
|
||||
printf "This system is missing your old key gentoo_rsa\n"
|
||||
if [ -r ~/.ssh/gentoo_rsa ]; then
|
||||
keys="${keys} ~/.ssh/gentoo_rsa"
|
||||
else
|
||||
printf "This system is missing your old key gentoo_rsa\n"
|
||||
fi
|
||||
|
||||
if [ -n "${keys}" ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue