From 656acff48dfba2f2945a3baf8d696007b8229200 Mon Sep 17 00:00:00 2001 From: Shubham Mishra Date: Tue, 3 Nov 2020 14:43:08 +0530 Subject: Add image builder for testvnf using packer tool Signed-off-by: Shubham Mishra Change-Id: I76b25903bdd328c9dbaeaa6041f114f8e2b8dccf --- tools/md-testvnf/scripts/sshConfig.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tools/md-testvnf/scripts/sshConfig.sh (limited to 'tools/md-testvnf/scripts/sshConfig.sh') diff --git a/tools/md-testvnf/scripts/sshConfig.sh b/tools/md-testvnf/scripts/sshConfig.sh new file mode 100644 index 00000000..b746cde6 --- /dev/null +++ b/tools/md-testvnf/scripts/sshConfig.sh @@ -0,0 +1,10 @@ +#!/bin/bash -eux +sudo mv temp /home/testvnf/authorized_keys +sudo mkdir /home/testvnf/.ssh +sudo mv /home/testvnf/authorized_keys /home/testvnf/.ssh/ +sudo chmod 700 /home/testvnf/.ssh +sudo chmod 600 /home/testvnf/.ssh/authorized_keys +sudo chown testvnf /home/testvnf/.ssh +sudo chown testvnf /home/testvnf/.ssh/authorized_keys +# Add `sync` so Packer doesn't quit too early, before the large file is deleted. +sync \ No newline at end of file -- cgit 1.2.3-korg