mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 05:14:10 -07:00
install gnupg2 if it's not installed
This commit is contained in:
parent
c73a75e634
commit
f3b15c5834
1 changed files with 5 additions and 0 deletions
|
@ -279,6 +279,11 @@ if [ ! -e '/usr/bin/wget' ]; then
|
|||
check_result $? "Can't install wget"
|
||||
fi
|
||||
|
||||
# Check if gnupg2 is installed
|
||||
if [ $(dpkg-query -W -f='${Status}' gnupg2 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
|
||||
apt -y install gnupg2
|
||||
fi
|
||||
|
||||
# Check if apparmor is installed
|
||||
# This check is borrowed from HestiaCP
|
||||
if [ $(dpkg-query -W -f='${Status}' apparmor 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue