Lines 36-42
Link Here
|
36 |
chooseApacheVersion () |
36 |
chooseApacheVersion () |
37 |
{ |
37 |
{ |
38 |
# convert the PHP version to upper-case |
38 |
# convert the PHP version to upper-case |
39 |
chosen=$( echo $1 | tr [a-z] [A-Z] ) |
39 |
chosen=$( echo $1 | tr '[:lower:]' '[:upper:]' ) |
40 |
|
40 |
|
41 |
# make a list of the mod_php versions available |
41 |
# make a list of the mod_php versions available |
42 |
choices=( $(learnApacheMods $G_APACHE_MOD_DIR) ) |
42 |
choices=( $(learnApacheMods $G_APACHE_MOD_DIR) ) |
Lines 174-180
Link Here
|
174 |
# if we get here, then apache is configured for a mod_php ... |
174 |
# if we get here, then apache is configured for a mod_php ... |
175 |
# is it one that is installed? |
175 |
# is it one that is installed? |
176 |
|
176 |
|
177 |
chosen="$( echo $chosen | tr [A-Z] [a-z] )" |
177 |
chosen="$( echo $chosen | tr '[:upper:]' '[:lower:]' )" |
178 |
for (( i = 0 ; i < ${#choices[@]} ; i = i + 1 )) ; do |
178 |
for (( i = 0 ; i < ${#choices[@]} ; i = i + 1 )) ; do |
179 |
if [[ ${choices[$i]} == $chosen ]] ; then |
179 |
if [[ ${choices[$i]} == $chosen ]] ; then |
180 |
echo $chosen |
180 |
echo $chosen |
Lines 209-215
Link Here
|
209 |
# if we get here, then apache is configured for a mod_php ... |
209 |
# if we get here, then apache is configured for a mod_php ... |
210 |
# is it one that is installed? |
210 |
# is it one that is installed? |
211 |
|
211 |
|
212 |
chosen="$( echo $chosen | tr [A-Z] [a-z] )" |
212 |
chosen="$( echo $chosen | tr '[:upper:]' '[:lower:]' )" |
213 |
for (( i = 0 ; i < ${#choices[@]} ; i = i + 1 )) ; do |
213 |
for (( i = 0 ; i < ${#choices[@]} ; i = i + 1 )) ; do |
214 |
if [[ ${choices[$i]} == $chosen ]] ; then |
214 |
if [[ ${choices[$i]} == $chosen ]] ; then |
215 |
# we have one installed; but is it what we want? |
215 |
# we have one installed; but is it what we want? |