Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbtek committed Dec 12, 2018
1 parent 269d6c4 commit 0093fc5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cookbooks/nginx/attributes/binary.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash -e

export NGINX_PORT='80'
export NGINX_PORT='80'

export AMAZON_LINUX_DEFAULT_ID='centos'
export AMAZON_LINUX_DEFAULT_VERSION='7'
10 changes: 10 additions & 0 deletions cookbooks/nginx/recipes/install-from-binary.bash
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ function install()

source "${releaseFilePath}"

# Set ID For Amazon Linux

if [[ "${ID}" = 'amzn' ]]
then
ID="${AMAZON_LINUX_DEFAULT_ID}"
VERSION_ID="${AMAZON_LINUX_DEFAULT_VERSION_ID}"
fi

# Generate Repo File

local -r configData=(
'__PLATFORM_FAMILY__' "${ID}"
'__PLATFORM_VERSION__' "$(awk -F '.' '{ print $1 }' <<< "${VERSION_ID}")"
Expand Down

0 comments on commit 0093fc5

Please sign in to comment.