aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/scripts
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2017-07-19 22:26:28 +0800
committerzhihui wu <wu.zhihui1@zte.com.cn>2017-07-19 14:58:07 +0000
commit5c3b0e9a51e3486ae660685a3c33aed0e39c5ab2 (patch)
treec37ea763b532d07bc1159c2e10e4e3fbacbe8d85 /mcp/scripts
parentb0600fd02696e49ce9b5e8baf646914aae70092d (diff)
[bugfix]invalid user ‘jenkins’
See https://build.opnfv.org/ci/job/fuel-deploy-zte-pod1-daily-master/456/console In lib.sh, generate_ssh_key() assumes that "jenkins" is the current user name. But on zte-pod1, the ci user name isn't jenkins. It is better to use $USER replaced "jenkins". JIRA:FUEL-273 Change-Id: I6ec6847eccd055b8b4062dd202f8f0a24ba6dd73 Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'mcp/scripts')
-rw-r--r--mcp/scripts/lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index 679b997b7..1848c7008 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -4,7 +4,7 @@
generate_ssh_key() {
[ -f "$SSH_KEY" ] || ssh-keygen -f ${SSH_KEY} -N ''
- install -o jenkins -m 0600 ${SSH_KEY} /tmp/
+ install -o $USER -m 0600 ${SSH_KEY} /tmp/
}
get_base_image() {