Skip to content

Commit

Permalink
Fix extension setup on self-hosted linux
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Nov 20, 2020
1 parent 385e3b6 commit 45213ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ remove_extension() {
if check_extension "$extension"; then
if [[ ! "$version" =~ ${old_versions:?} ]] && [ -e /etc/php/"$version"/mods-available/"$extension".ini ]; then
sudo phpdismod -v "$version" "$extension" >/dev/null 2>&1
echo "$extension" | sudo tee -a /tmp/setup_php_dismod >/dev/null 2>&1
fi
delete_extension "$extension"
(! check_extension "$extension" && add_log "${tick:?}" ":$extension" "Removed") ||
add_log "${cross:?}" ":$extension" "Could not remove $extension on PHP ${semver:?}"
else
delete_extension "$extension"
add_log "${tick:?}" ":$extension" "Could not find $extension on PHP $semver"
fi
}
Expand Down

0 comments on commit 45213ad

Please sign in to comment.