Fix setup on self-hosted linux

This commit is contained in:
Shivam Mathur 2020-05-27 08:09:47 +05:30
parent 325413a824
commit 0469a6f681
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -37,10 +37,13 @@ pre_setup() {
fi fi
update_ppa && $apt_install curl make lsb-release software-properties-common unzip update_ppa && $apt_install curl make lsb-release software-properties-common unzip
if ! apt-cache policy | grep -q ondrej/php; then if ! apt-cache policy | grep -q ondrej/php; then
LC_ALL=C.UTF-8 sudo apt-add-repository ppa:ondrej/php -y && update_ppa LC_ALL=C.UTF-8 sudo apt-add-repository ppa:ondrej/php -y
if [ "$(lsb_release -r -s)" = "16.04" ]; then
sudo "$debconf_fix" apt-get update >/dev/null 2>&1
fi
fi fi
if [ "$version" = "8.0" ]; then if [ "$version" = "8.0" ]; then
IFS=' ' read -r -a libs <<< "$(echo "aspell curl4-gnutls enchant freetype6 icu jpeg png tidy webp xpm zip" | sed "s/[^ ]*/lib&-dev/g")" IFS=' ' read -r -a libs <<< "$(echo "aspell curl4-gnutls enchant freetype6 icu jpeg onig png pq tidy webp xpm xslt zip" | sed "s/[^ ]*/lib&-dev/g")"
$apt_install "${libs[@]}" $apt_install "${libs[@]}"
fi fi
fi fi