mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix local image
This commit is contained in:
parent
cd804ae80d
commit
f0117f5b5f
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue