fix check for creating ssh key

This commit is contained in:
Philip Henning 2024-11-25 10:40:19 +01:00
parent be1751a9c4
commit dfa16c1208

View file

@ -43,7 +43,7 @@ if [[ ! -f ./.env ]]; then
fi
# Check if ssh key already exists, otherwise generate one
if [[ ! -f ./data/restic/ssh/ ]]; then
if [[ ! -f ./data/restic/ssh/id_ed25519 ]]; then
[[ ! -d ./data/restic/ssh/ ]] && mkdir -p ./data/restic/ssh/
ssh-keygen -t ed25519 -C "sso.base23.de" -f ./data/restic/ssh/id_ed25519
fi