diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index 5bed3d9909..00c07c2b5f 100644 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -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 @@ -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 @@ -13121,7 +13126,7 @@ _EOF_ elif (( $1 == 91 )); then - AGP redis-server + AGP redis-server "$PHP_APT_PACKAGE_NAME"-redis elif (( $1 == 89 )); then