Update PPA before phalcon setup

This commit is contained in:
Shivam Mathur 2020-05-18 17:53:34 +05:30
parent 50ffa593bb
commit b36d2222e6
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -22,7 +22,6 @@ update_ppa() {
install_phalcon() {
extension=$1
version=$2
(sudo DEBIAN_FRONTEND=noninteractive apt-get install -y "php$version-$extension" >/dev/null 2>&1 && add_log "$tick" "$extension" "Installed and enabled") ||
(update_ppa && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y "php$version-$extension" >/dev/null 2>&1 && add_log "$tick" "$extension" "Installed and enabled") ||
add_log "$cross" "$extension" "Could not install $extension on PHP $semver"
}