adding support for amazon linux

This commit is contained in:
Matt Coddington 2012-01-25 23:11:59 -05:00
commit 211ee5b043
4 changed files with 10 additions and 2 deletions

View file

@ -33,7 +33,7 @@ else
archlinux) type="pacman" ;;
debian|ubuntu) type="apt" ;;
gentoo) type="emerge" ;;
fedora|redhat|centos) type="yum" ;;
fedora|redhat|centos|amazon) type="yum" ;;
*)
echo "Don't know how to manage packages on: $os" >&2
exit 1

View file

@ -29,7 +29,7 @@ fi
state="$(cat "$__object/parameter/state")"
if grep -q -E "(centos|redhat)" "$__global/explorer/os"; then
if grep -q -E "(centos|redhat|amazon)" "$__global/explorer/os"; then
opts="-y --quiet"
else
opts="--assumeyes --quiet"