diff --git a/VERSION b/VERSION index 359a5b9..10bf840 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.0 \ No newline at end of file +2.0.1 \ No newline at end of file diff --git a/overlay/usr/lib/bcg/inc/php-replace-ini.sh b/overlay/usr/lib/bcg/inc/php-replace-ini.sh index 9921c59..0845e28 100644 --- a/overlay/usr/lib/bcg/inc/php-replace-ini.sh +++ b/overlay/usr/lib/bcg/inc/php-replace-ini.sh @@ -1,6 +1,4 @@ -#!/bin/sh - -set -euo pipefail +#!/bin/bash #====================================================================================================================== @@ -14,12 +12,14 @@ set -euo pipefail replace-ini () { # get array and file - local -n ARR=${1} + local -n A=${1} FILE=${2} + bcg-debug "Replacing configuration values in ${FILE}." + # loop for KEY in ${!A[@]} ; do - VAL=${ARR[$KEY]} + VAL=${A[$KEY]} if [ ! -z "${VAL}" ] ; then bcg-debug "${KEY}=${VAL}." "replace-ini" sed -i "s|^;\?${KEY}.*$|${KEY} = ${VAL}|i" ${FILE}