From 07b231f21841c951a2db60475c17730b647f7542 Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Wed, 1 Apr 2020 02:11:42 +0200 Subject: Revise --- run | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'run') diff --git a/run b/run index 825c1a7..7bc0664 100755 --- a/run +++ b/run @@ -41,9 +41,8 @@ tar -czf http/pub/OpenBSD/6.6/amd64/site66.tgz install.site ( cd http/pub/OpenBSD/6.6/amd64 && ls -l > index.txt ) # Add public ssh key to install.conf. -grep -q -e "^Public ssh key" http/install.conf || { +grep -q -e "^Public ssh key for user =" http/install.conf || { ssh_pub_key="$( cat ~/.ssh/id_rsa.pub )" - echo "Public ssh key for root account = ${ssh_pub_key}" >> http/install.conf echo "Public ssh key for user = ${ssh_pub_key}" >> http/install.conf } -- cgit v1.2.3