Fix enabling pdo extension

This commit is contained in:
Shivam Mathur 2020-05-15 23:48:03 +05:30
parent 3a8557bcc6
commit 0158fe2782
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -119,7 +119,7 @@ add_pdo_extension() {
add_log "$tick" "$pdo_ext" "Enabled"
else
read -r ext ext_name <<< "$1 $1"
sudo rm -rf "$scan_dir"/*pdo.ini >/dev/null 2>&1 && enable_extension "pdo" "extension" >/dev/null 2>&1
sudo rm -rf "$scan_dir"/*pdo.ini >/dev/null 2>&1 && echo "extension=pdo.so" >> "$ini_file"
if [ "$ext" = "mysql" ]; then
enable_extension "mysqlnd" "extension"
ext_name="mysqli"