[bug] Fix missing sudo for setting up virtmgr SSH keys

Change-Id: I944b3ff151e7d4e3802cf32943a287acf41be107
This commit is contained in:
SKELS, KASPARS (ks3019) 2019-03-19 11:25:20 -05:00
parent eea2167944
commit e99d69eb9e
1 changed files with 2 additions and 2 deletions

View File

@ -305,8 +305,8 @@ gen_libvirt_key() {
if [[ "${GATE_SSH_KEY}" ]]; then
log "Using existing SSH keys for virtmgr"
cp "${GATE_SSH_KEY}" ~virtmgr/.ssh/airship_gate
cp "${GATE_SSH_KEY}.pub" ~virtmgr/.ssh/airship_gate.pub
sudo cp "${GATE_SSH_KEY}" ~virtmgr/.ssh/airship_gate
sudo cp "${GATE_SSH_KEY}.pub" ~virtmgr/.ssh/airship_gate.pub
else
log "Generating new SSH keypair for virtmgr"
sudo ssh-keygen -N '' -b 2048 -t rsa -f ~virtmgr/.ssh/airship_gate &>> "${LOG_FILE}"