Skip to content

Commit

Permalink
Fix enable_extension
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Feb 9, 2023
1 parent 0d60024 commit fb1ad7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/extensions/add_extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ enable_extension() {
enable_cache_extension_dependencies "$1" "$2"
if command -v phpenmod >/dev/null 2>&1; then
mod="${ini_dir:?}"/../mods-available/"$1".ini
[ ! -e "$mod" ] || (echo "; priority=${3:'20'}"; echo "$2=${ext_dir:?}/$1.so") | sudo tee "$mod" >/dev/null
[ -e "$mod" ] || (echo "; priority=${3:'20'}"; echo "$2=${ext_dir:?}/$1.so") | sudo tee "$mod" >/dev/null
sudo phpenmod -v "$version" "$1" >/dev/null 2>&1
else
echo "$2=${ext_dir:?}/$1.so" | sudo tee -a "${pecl_file:-${ini_file[@]}}" >/dev/null
Expand Down

0 comments on commit fb1ad7f

Please sign in to comment.