Fix db extensions

This commit is contained in:
Shivam Mathur
2020-03-16 06:38:50 +05:30
parent 3cfc409e14
commit 5ad0888329
5 changed files with 56 additions and 11 deletions

View File

@ -51,7 +51,11 @@ get_pecl_version() {
# Function to test if extension is loaded
check_extension() {
extension=$1
php -m | grep -i -q -w "$extension"
if [ "$extension" != "mysql" ]; then
php -m | grep -i -q -w "$extension"
else
php -m | grep -i -q "$extension"
fi
}
# Function to delete extensions