hujuice

Gentoo cron updates

Nov 24th, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.71 KB | None | 0 0
  1. #!/bin/bash
  2. # ==============================================
  3. # Gentoo system update
  4. # ==============================================
  5.  
  6. FILELOG=/tmp/emerge.log
  7.  
  8. UNATTENDED_OPTS="--ask n"
  9.  
  10. exec &>$FILELOG
  11.  
  12. date
  13.  
  14. echo "========================================"
  15. echo
  16.  
  17. echo "Portage update"
  18. /usr/bin/emerge $UNATTENDED_OPTS --sync
  19. /usr/bin/eix-update
  20. echo
  21.  
  22. echo "Start..."
  23. /usr/bin/emerge $UNATTENDED_OPTS -uND world
  24. echo "...done."
  25. echo
  26.  
  27. echo "Cleaning oldies..."
  28. /usr/bin/eclean-dist
  29. /usr/bin/eclean-pkg
  30. echo "...done"
  31. echo
  32.  
  33. echo "Portage health"
  34. /usr/bin/eix-test-obsolete
  35. echo
  36.  
  37. echo "Gentoo Linux Security Advisories check"
  38. /usr/bin/glsa-check -l
  39. echo
  40.  
  41. echo
Advertisement
Add Comment
Please, Sign In to add comment