Skip to content

Commit

Permalink
Merge pull request #1249 from MichaIng/patch-1
Browse files Browse the repository at this point in the history
DietPi-Software | Redis: Minor un/installation/activation fixes of PHP module
  • Loading branch information
Fourdee authored Nov 22, 2017
2 parents 8db1796 + 7133bf7 commit e6aabce
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -3805,6 +3805,12 @@ _EOF_

Banner_Installing
AGI redis-server
#Redis php module | == 2 to check for existing installs, if == 1, then module will be installed together with PHP, to prevent dependency installations
if (( ${aSOFTWARE_INSTALL_STATE[89]} == 2 )); then

AGI "$PHP_APT_PACKAGE_NAME"-redis

fi

fi

Expand Down Expand Up @@ -9033,9 +9039,8 @@ _EOF_
INSTALLING_INDEX=91
if (( ${aSOFTWARE_INSTALL_STATE[$INSTALLING_INDEX]} == 1 )); then

#Enable resdis extensions for all webstacks:
echo -e "extension=redis.so" > "$FP_PHP_BASE_DIR"/cli/conf.d/20-redis.ini &> /dev/null
echo -e "extension=redis.so" > "$FP_PHP_BASE_DIR"/apache2/conf.d/20-redis.ini &> /dev/null
#Enable redis extension for all webstacks:
"$PHP_APT_PACKAGE_NAME"enmod redis

fi

Expand Down Expand Up @@ -13121,7 +13126,7 @@ _EOF_

elif (( $1 == 91 )); then

AGP redis-server
AGP redis-server "$PHP_APT_PACKAGE_NAME"-redis

elif (( $1 == 89 )); then

Expand Down

0 comments on commit e6aabce

Please sign in to comment.