From 59695acd10ce63740bcf274a13569230362e06c5 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Thu, 29 Nov 2018 13:40:15 +0200 Subject: [PATCH] universe repository check --- install/vst-install-ubuntu.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install/vst-install-ubuntu.sh b/install/vst-install-ubuntu.sh index 4cc5ee86..e1ca1044 100755 --- a/install/vst-install-ubuntu.sh +++ b/install/vst-install-ubuntu.sh @@ -447,6 +447,13 @@ fi apt-get -y upgrade check_result $? 'apt-get upgrade failed' +# Checking universe repository +if [[ ${release:0:2} -gt 16 ]]; then + if [ -z "$(grep universe /etc/apt/sources.list)" ]; then + add-apt-repository -y universe + fi +fi + # Installing nginx repo apt=/etc/apt/sources.list.d echo "deb http://nginx.org/packages/mainline/ubuntu/ $codename nginx" \