SHARE
TWEET

Untitled

a guest Jan 14th, 2020 47 in 7 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !#/usr/bin/env bash
  2. out1=$(ssh user@srv1  ’service php5.6-fpm
  3. restart’)
  4. if [ out1 -eq 0 ]; then
  5.   out2=$(ssh user@srv2  ’service php5.6-fpm’)
  6. else
  7.   exit 1
  8. fi
  9.  
  10. if [ out2 -eq 0 ]; then
  11.   out3=$(ssh user@srv3 service php5.6-fpm’)
  12. else
  13.   exit 1
  14. fi
  15.  
  16. if [ out3 -eq 0 ]; then
  17.   out4=$(ssh user@srv2  ’service php5.6-fpm’)
  18. else
  19.   exit 1
  20. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top