Skip to content

Commit

Permalink
used nohup for running call in background
Browse files Browse the repository at this point in the history
  • Loading branch information
keeyzar committed Dec 20, 2020
1 parent fdd70bf commit ee5e5e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script-files/install-metallb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ echo "checking whether or not load balancer is accessible"
curl --connect-timeout 10 "$external_ip" > /dev/null 2>&1 && works=1

echo "deleting pod and service in background"
kubectl delete pod nginx > /dev/null 2>&1 &
kubectl delete service nginx > /dev/null 2>&1 &
nohup kubectl delete pod nginx > /dev/null 2>&1
nohup kubectl delete service nginx > /dev/null 2>&1

if [[ $works -eq 1 ]]; then
echo "metallb works"
Expand Down

0 comments on commit ee5e5e8

Please sign in to comment.