From ca94fdbd92d175f6a7b4f25d399ac06df7f0d199 Mon Sep 17 00:00:00 2001 From: simono41 Date: Sun, 17 Jun 2018 20:58:31 +0200 Subject: [PATCH] ssh-keygen -b 4096 --- arch-graphical-install-auto | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index f525fe0..1302a8a 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -30,6 +30,14 @@ hostname="$(cat /etc/hostname)" [[ -z "${userpass}" ]] && userpass="user1" function gitclone() { + if ! [ -f "/root/.ssh/id_rsa.pub" ]; then + ssh-keygen -b 4096 + rootrechte + cat /root/.ssh/id_rsa.pub + echo "Bitte tragen sie den neuen Key in den GIT-Server ein!!!" + echo "Sie haben 60 Sekunden Zeit!!!" + sleep 60 + fi if [ -d "/opt/${repo}" ]; then echo "${repo} existiert bereits!!!" cd /opt/${repo}