diff --git a/playbooks/roles/cyclecloud_pbs/cluster-init/scripts/9-installpbs.sh b/playbooks/roles/cyclecloud_pbs/cluster-init/scripts/9-installpbs.sh index 7cca1b1c5..731a8ef6e 100755 --- a/playbooks/roles/cyclecloud_pbs/cluster-init/scripts/9-installpbs.sh +++ b/playbooks/roles/cyclecloud_pbs/cluster-init/scripts/9-installpbs.sh @@ -1,28 +1,5 @@ #!/bin/bash -function fail { - echo $1 >&2 - exit 1 -} - -function retry { - local n=1 - local max=5 - local delay=10 - while true; do - "$@" && break || { - if [[ $n -lt $max ]]; then - sleep_time=$((delay*n)) - echo "Command failed. Attempt $n/$max. Wait for $sleep_time seconds" - sleep $sleep_time; - ((n++)) - else - fail "The command has failed after $n attempts." - fi - } - done -} - # install pbs rpms when not in custom image if [ ! -f "/etc/pbs.conf" ]; then echo "Downloading PBS RPMs"