fix local image

This commit is contained in:
Tobias Powalowski 2024-06-01 16:28:00 +02:00
parent cd804ae80d
commit f0117f5b5f

View file

@ -135,8 +135,11 @@ _ssh_keys() {
echo "Using custom OpenSSH Key..."
cp /etc/archboot/ssh/archboot-key.pub "${1}"/etc/archboot/ssh/
else
echo "Generating new Archboot OpenSSH Key..."
ssh-keygen -C Archboot -f "${1}"/etc/archboot/ssh/archboot-key -N 'Archboot' -q
# don't run on local image
if ! [[ -f "${_LOCAL_DB}" ]]; then
echo "Generating new Archboot OpenSSH Key..."
ssh-keygen -C Archboot -f "${1}"/etc/archboot/ssh/archboot-key -N 'Archboot' -q
fi
fi
}