Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2016
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. TEXT_RESET='\e[0m'
  4. TEXT_YELLOW='\e[0;33m'
  5. TEXT_RED_B='\e[1;31m'
  6.  
  7. apt-get update
  8. echo -e $TEXT_YELLOW
  9. echo 'APT update finished...'
  10. echo -e $TEXT_RESET
  11.  
  12. apt-get dist-upgrade
  13. echo -e $TEXT_YELLOW
  14. echo 'APT distributive upgrade finished...'
  15. echo -e $TEXT_RESET
  16.  
  17. apt-get upgrade
  18. echo -e $TEXT_YELLOW
  19. echo 'APT upgrade finished...'
  20. echo -e $TEXT_RESET
  21.  
  22. apt-get autoremove
  23. echo -e $TEXT_YELLOW
  24. echo 'APT auto remove finished...'
  25. echo -e $TEXT_RESET
  26.  
  27. if [ -f /var/run/reboot-required ]; then
  28. echo -e $TEXT_RED_B
  29. echo 'Reboot required!'
  30. echo -e $TEXT_RESET
  31. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement