Merge pull request #1790 from molny/master

Check missing 'gnupg' package on latest fresh Ubuntu versions
This commit is contained in:
Anton Reutov 2021-08-23 18:02:13 +03:00 committed by GitHub
commit 402a69049c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,6 +265,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"