Guest User

Untitled

a guest
Apr 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. source /etc/lsb-release
  2. if [[ "${DISTRIB_CODENAME}" == "xenial" ]]; then
  3. kernel_version="4.4.0-1052"
  4. elif [[ "${DISTRIB_CODENAME}" == "trusty" ]]; then
  5. kernel_version="4.4.0-1016"
  6. else
  7. echo "!!! YOU MUST UPGRADE TO <= TRUSTY"
  8. fi
  9. apt-get -y autoremove ; apt-get update; apt-get -y install linux-aws linux-image-${kernel_version}-aws
Add Comment
Please, Sign In to add comment