mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
Fix yum repo on AWS Linux
If I understand the logic here the new(ish) aws repo url would only be used in these two cases - when repo_rev: * starts with latest or 2016.11 * starts with 0-9 and the year string is greater than 2016 If I'm reading this correct, the second case is wrong so I've removed the check for "starts with 0-9". Fixes #1159.
This commit is contained in:
parent
b59a29b074
commit
87d38135b8
1 changed files with 1 additions and 1 deletions
|
@ -4423,7 +4423,7 @@ install_amazon_linux_ami_deps() {
|
|||
repo_rev="$(echo "${STABLE_REV}" | sed 's|.*\/||g')"
|
||||
|
||||
if echo "$repo_rev" | egrep -q '^(latest|2016\.11)$' || \
|
||||
( echo "$repo_rev" | egrep -q '^[0-9]+$' && [ "$(echo "$repo_rev" | cut -c1-4)" -gt 2016 ] ); then
|
||||
[ "$(echo "$repo_rev" | cut -c1-4)" -gt 2016 ]; then
|
||||
_USEAWS=$BS_TRUE
|
||||
pkg_append="python27"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue