Skip to content

Commit

Permalink
more fixes to remove apcu
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Jul 24, 2021
1 parent 2232d6b commit 6915bea
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,25 @@ then
else
print_text_in_color "$IGreen" "APCu PHP module removal OK!"
fi
# Delete everything else
check_command phpdismod -v ALL apcu
rm -f $PHP_MODS_DIR/apcu.ini
sed -i "/extension=apcu.so/d" "$PHP_INI"
sed -i "/APCu/d" "$PHP_INI"
sed -i "/apc./d" "$PHP_INI"
# Delete everything else
check_command phpdismod -v ALL apcu
rm -f "$PHP_MODS_DIR"/apcu.ini
rm -f "$PHP_MODS_DIR"/apcu_bc.ini
sed -i "/extension=apcu.so/d" "$PHP_INI"
sed -i "/APCu/d" "$PHP_INI"
sed -i "/apc./d" "$PHP_INI"
fi
fi

# Also remove php-acpu if installed
if is_this_installed php-acpu
then
apt-get purge php-apcu
elif is_this_installed php"$PHPVER"-apcu
then
apt-get purge php"$PHPVER"-apcu
fi

# Upgrade other PECL dependencies
if [ "${CURRENTVERSION%%.*}" -ge "17" ]
then
Expand Down

0 comments on commit 6915bea

Please sign in to comment.