AndrzejL

/root/Upgrade.sh

May 8th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. echo "System upgrade and maintenance started [OK]" &&
  2. apt-get update &&
  3. echo "Packages list refreshed [OK]" &&
  4. echo "Searching for possible upgrades [OK]" &&
  5. apt-get --yes dist-upgrade &&
  6. echo "Packages upgrades successfully [OK]" &&
  7. echo "Applying Firefox Nightly symlinks fix." &&
  8. rm -f /usr/bin/firefox &&
  9. echo "Old symlink /usr/bin/firefox removed [OK]" &&
  10. ln -s /home/andrzejl/firefox/firefox /usr/bin/firefox &&
  11. echo "New symlink /usr/bin/firefox created [OK]" &&
  12. rm -f /usr/bin/mozilla-firefox &&
  13. echo "Old symlink /usr/bin/mozilla-firefox removed [OK]" &&
  14. ln -s /home/andrzejl/firefox/firefox /usr/bin/mozilla-firefox &&
  15. echo "New symlink /usr/bin/mozilla-firefox created [OK]" &&
  16. echo "Applying Firefox Nightly symlinks fix. [OK]" &&
  17. echo "Applying Thunderbird Daily symlinks fix." &&
  18. rm -f /usr/bin/thunderbird &&
  19. echo "Old symlink /usr/bin/thunderbird removed [OK]" &&
  20. ln -s /home/andrzejl/thunderbird/thunderbird /usr/bin/thunderbird &&
  21. echo "New symlink /usr/bin/thunderbird created [OK]" &&
  22. rm -f /usr/bin/mozilla-thunderbird &&
  23. echo "Old symlink /usr/bin/mozilla-thunderbird removed [OK]" &&
  24. ln -s /home/andrzejl/thunderbird/thunderbird /usr/bin/mozilla-thunderbird &&
  25. echo "New symlink /usr/bin/mozilla-thunderbird created [OK]" &&
  26. echo "Applying Thunderbird Daily symlinks fix. [OK]" &&
  27. apt-get clean &&
  28. echo "Clearing packages from /var/cache/apt/archives [OK]" &&
  29. ldconfig &&
  30. echo "System maintenance step 1 - ldconfig [OK]" &&
  31. updatedb &&
  32. echo "System maintenance step 2 - creating database of all files [OK]" &&
  33. /usr/sbin/prelink -avmR &&
  34. echo "System maintenance step 3 - prelinking [OK]" &&
  35. freshclam &&
  36. echo "System maintenance step 4 - ClamAV anti virus database updated [OK]"
Advertisement
Add Comment
Please, Sign In to add comment