Advertisement
Guest User

Untitled

a guest
Dec 12th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/csh
  2.  
  3. cd /opt/noc
  4.  
  5. set VBEFORE=`./scripts/about | grep NOC`
  6.  
  7. echo "Stopping NOC"
  8. /usr/local/etc/rc.d/noc stop
  9.  
  10. su -m noc -c './scripts/upgrade'
  11.  
  12.  
  13. echo "Starting NOC"
  14. /usr/local/etc/rc.d/noc start
  15.  
  16. echo
  17. echo "Start version: " $VBEFORE
  18. echo "Current version: " `./scripts/about | grep NOC`
  19. echo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement