diff --git a/scripts/init.sh b/scripts/init.sh index 1d0994e..69490a9 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -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