summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2016-01-22 08:54:47 +0800
committercarey.xu <carey.xuhan@huawei.com>2016-01-22 08:54:47 +0800
commite061c95577fdbc71bcda33355c15e6c76ca72ea5 (patch)
tree0e5bd0c4c06cebd01197417ee6361739198595b9 /deploy
parent4a4a18e97eed73c1b82ae83b65cd765160f8ae6c (diff)
bugfix: make reboot_hosts async
Change-Id: If9f7b8a091edb4ac3d057f5e87c62ab10a7a0674 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy/deploy_host.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/deploy_host.sh b/deploy/deploy_host.sh
index b7859d37..7173e3e3 100755
--- a/deploy/deploy_host.sh
+++ b/deploy/deploy_host.sh
@@ -6,7 +6,7 @@ function deploy_host(){
scp $ssh_args -r ${COMPASS_DIR}/deploy/status_callback.py root@${MGMT_IP}:/opt/compass/bin/ansible_callbacks/status_callback.py
# avoid nodes reboot to fast, cobbler can not give response
- nohup bash -c "sleep 20;reboot_hosts" &
+ (sleep 20;reboot_hosts) &
if [[ "$REDEPLOY_HOST" == true ]]; then
deploy_flag="redeploy"