Browse Source

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

Change-Id: I944b3ff151e7d4e3802cf32943a287acf41be107
SKELS, KASPARS (ks3019) 1 month ago
parent
commit
e99d69eb9e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tools/multi_nodes_gate/airship_gate/lib/virsh.sh

+ 2
- 2
tools/multi_nodes_gate/airship_gate/lib/virsh.sh View File

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

Loading…
Cancel
Save