diff options
author | Alex Yang <yangyang1@zte.com.cn> | 2017-07-26 11:15:44 +0800 |
---|---|---|
committer | Alex Yang <yangyang1@zte.com.cn> | 2017-07-26 13:38:07 +0800 |
commit | 8d951bd35aca9af5f4fa26fec643d25622f4f466 (patch) | |
tree | b9da68615a8d7149486f42cec3f3fee7b4d62104 /deploy/post.sh | |
parent | 4aab5fede6d007aa7c934aabbe7294b793bc6087 (diff) |
Convert the bash commands in post.sh to python code
According to the comment from Serena in the patch
https://gerrit.opnfv.org/gerrit/#/c/37857/, the bash code
in post.sh can be implemented by python, and the deploy
script can call post/execute.py directly.
Change-Id: Ibcf86fc2b6ee3942e4082384c9d4075d608b7294
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
Diffstat (limited to 'deploy/post.sh')
-rwxr-xr-x | deploy/post.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/deploy/post.sh b/deploy/post.sh index 3077e007..b65d429b 100755 --- a/deploy/post.sh +++ b/deploy/post.sh @@ -1,4 +1,12 @@ #!/bin/bash +############################################################################## +# Copyright (c) 2016 ZTE Corporation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## SCRIPT_PATH=$(readlink -f $(dirname $0)) @@ -50,6 +58,3 @@ if [ ! $? -eq 0 ]; then exit 1 fi -source /etc/kolla/admin-openrc.sh -openstack security group rule create --proto icmp default -openstack security group rule create --proto tcp --dst-port 22 default |