Guest User

Untitled

a guest
Aug 19th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/sh -e
  2.  
  3. # upgrade packages
  4. sudo apt-get update && sudo apt-get dist-upgrade -y --force-yes
  5.  
  6. # upgrade node application
  7. cat > /tmp/upgrade <<EOF
  8. #!/bin/sh
  9. cd app
  10. git pull --rebase
  11. npm install
  12. EOF
  13. chmod +x /tmp/upgrade
  14. /tmp/upgrade
  15.  
  16. # restart service
  17. sudo restart nodejs
  18.  
  19. date > /tmp/date-of-last-upgrade
Add Comment
Please, Sign In to add comment