From 0469a6f681f564ba3eb9f48ed2b35cd32fddc917 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 27 May 2020 08:09:47 +0530 Subject: [PATCH] Fix setup on self-hosted linux --- src/scripts/linux.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index 5b1316cb..66dbcc10 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -37,10 +37,13 @@ pre_setup() { fi update_ppa && $apt_install curl make lsb-release software-properties-common unzip 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 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[@]}" fi fi