From cb67641bedd2eb07f7f09aecb3c0146421e7ed9a Mon Sep 17 00:00:00 2001 From: Maxim Nosovets Date: Fri, 14 Dec 2018 15:20:14 +0200 Subject: [PATCH] Check missing 'gnupg' package on latest fresh Ubuntu versions --- install/vst-install-ubuntu.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/install/vst-install-ubuntu.sh b/install/vst-install-ubuntu.sh index e1ca1044a..b360d41c2 100755 --- a/install/vst-install-ubuntu.sh +++ b/install/vst-install-ubuntu.sh @@ -260,6 +260,18 @@ check_result $? "No access to Vesta repository" # Checking installed packages tmpfile=$(mktemp -p /tmp) dpkg --get-selections > $tmpfile +# Checking gnupg (fix for latest Ubuntu vestions) +for pkg in gnupg gnupg1 gnupg2; do + if [ ! -z "$(grep '$pkg' $tmpfile)" ]; then + gnupg_exist=true + break + fi +done +if [ -z "$gnupg_exist" ]; then + apt-get -y install gnupg + check_result $? "apt-get install failed" +fi +# Checking conflicts for pkg in exim4 mysql-server apache2 nginx vesta; do if [ ! -z "$(grep $pkg $tmpfile)" ]; then conflicts="$pkg $conflicts"