upgrade.sh 405 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. # TODO check if root
  3. echo -e '\033[35m
  4. __ ______ __________ ___ ____ ______
  5. / / / / __ \/ ____/ __ \/ | / __ \/ ____/
  6. / / / / /_/ / / __/ /_/ / /| | / / / / __/
  7. / /_/ / ____/ /_/ / _, _/ ___ |/ /_/ / /___
  8. \____/_/ \____/_/ |_/_/ |_/_____/_____/
  9. \033[0m'
  10. if [ "$EUID" -ne 0 ]; then
  11. echo "Please run as root"
  12. exit
  13. fi
  14. apt-get update
  15. apt-get dist-upgrade
  16. needrestart -rl