From: Paul Hänsch Date: Fri, 3 Nov 2023 12:01:19 +0000 (+0100) Subject: avoid crash when /root/.ssh/ exists X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=31cb3ff94dbe624222e09466dc7b31d99dc88595;p=blast avoid crash when /root/.ssh/ exists --- diff --git a/modules/default.mk b/modules/default.mk index fa1d840..efb8358 100644 --- a/modules/default.mk +++ b/modules/default.mk @@ -107,7 +107,7 @@ ${rootkey}.pub: [ -f "$@" ] || ssh-keygen -N '' -f "$${rootkey}" _rootkey: ${CFGROOT} ${rootkey}.pub - mkdir -m 700 "$${CFGROOT}/root/.ssh/" + mkdir -pm 700 "$${CFGROOT}/root/.ssh/" cp "$${rootkey}.pub" "$${CFGROOT}/root/.ssh/authorized_keys" _users: ${CFGROOT}