Skip to content

Commit

Permalink
Fix to avoid double activation
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed May 3, 2023
1 parent cb8f453 commit 00a68a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/extensions/add_extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ enable_extension() {
enable_extension_dependencies "$1" "$2"
enable_cache_extension_dependencies "$1" "$2"
if ! [[ "${version:?}" =~ ${old_versions:?} ]] && command -v phpenmod >/dev/null 2>&1; then
sudo sed -Ei "/=(.*\/)?\"?$extension(.so)?$/d" "$pecl_file"
mod="${ini_dir:?}"/../mods-available/"$1".ini
if ! [ -e "$mod" ]; then
priority="${3:-20}";
Expand Down

0 comments on commit 00a68a7

Please sign in to comment.