My job let me always release a new version of the program to a satellite server, then in the running server, I use yum update program to update the program.
However, due to unknown reason, in most of times, even if I upload the program to the satellite server, yum update program can't get the update soon. I always have to wait, keep retrying, etc.
So anyone can tell me how to write a script, so
- it keeps retrying
yum update programif no update available - if update is available, then the update in yum is forced
- after successful update, the script quits.
Thanks
