From 88c7757dc80f3d769e00af11d24cdc0a70708d51 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 2 Feb 2020 07:24:44 +0530 Subject: [PATCH] Add dependencies when enabling extensions in linux --- src/scripts/linux.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index 850bd6e9..0f0894b9 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -54,6 +54,8 @@ add_extension() { install_command=$2 prefix=$3 if ! php -m | grep -i -q -w "$extension" && [ -e "$ext_dir/$extension.so" ]; then + # shellcheck disable=SC2046 + $apt_install $(apt-cache depends php"$version"-"$extension" | awk '/Depends:/{print$2}') >/dev/null 2>&1 echo "$prefix=$extension" >>"$ini_file" && add_log "$tick" "$extension" "Enabled" elif php -m | grep -i -q -w "$extension"; then add_log "$tick" "$extension" "Enabled"