Skip to content

Commit

Permalink
Merge pull request #13 from weierophinney/hotfix/7-ini-concatenation
Browse files Browse the repository at this point in the history
Ensure newlines are propagated to php.ini settings
  • Loading branch information
weierophinney authored Apr 1, 2021
2 parents 2dfb4a0 + b46074c commit 1ba67b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ if [[ "${COMMAND}" == "" ]];then
fi

EXTENSIONS=$(echo "${JOB}" | jq -r ".extensions | map(\"php${PHP}-\"+.) | join(\" \")")
INI=$(echo "${JOB}" | jq -r '.ini | join("\n")')
INI=$(echo "${JOB}" | jq -r '.ini | join("{NL}")')
DEPS=$(echo "${JOB}" | jq -r '.dependencies')

if [[ "${EXTENSIONS}" != "" ]];then
Expand All @@ -151,7 +151,7 @@ fi

if [[ "${INI}" != "" ]];then
echo "Installing php.ini settings"
echo $INI > /etc/php/${PHP}/cli/conf.d/99-settings.ini
echo $INI | sed "s/{NL}/\n/g" > /etc/php/${PHP}/cli/conf.d/99-settings.ini
fi

echo "Marking PHP ${PHP} as configured default"
Expand Down

0 comments on commit 1ba67b1

Please sign in to comment.