Skip to content

Commit 74b02f7

Browse files
author
Alexandros
committed
gnupg2 check fixes
1 parent a4ab386 commit 74b02f7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ All notable changes to this project will be documented in this file.
3737
- Fixed cronjob issue with sftp jail due to missing user.
3838
- Fixed issue #569 Remote backup hostname would reject ip addr without reverse dns (PTR record).
3939
- Create a couple of writeable folders in each user home directory (#580).
40-
- Added gnupg2 check to prevent issues with pubkey installation.
40+
- Added gnupg/gnupg2 check to prevent issues with pubkey installation.
4141
- Fixed nameserver validation on add new user packages.
4242

4343
## [1.0.5] - 2019-08-06 - Hotfix

install/hst-install-debian.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ if [ ! -e '/usr/lib/apt/methods/https' ]; then
343343
check_result $? "Can't install apt-transport-https"
344344
fi
345345

346-
# Check if gnupg2 is installed
347-
if [ ! -e '/usr/bin/gnupg2' ]; then
346+
# Check if gnupg or gnupg2 is installed
347+
if [ ! -e '/usr/lib/gnupg2' ] || [ ! -e '/usr/lib/gnupg' ]; then
348348
echo "(*) Installing gnupg2..."
349349
apt-get -y install gnupg2 >> $LOG
350350
check_result $? "Can't install gnupg2"

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ if [ ! -e '/usr/bin/apt-add-repository' ]; then
317317
check_result $? "Can't install software-properties-common"
318318
fi
319319

320-
# Check if gnupg2 is installed
321-
if [ ! -e '/usr/bin/gnupg2' ]; then
320+
# Check if gnupg or gnupg2 is installed
321+
if [ ! -e '/usr/lib/gnupg2' ] || [ ! -e '/usr/lib/gnupg' ]; then
322322
echo "(*) Installing gnupg2..."
323323
apt-get -y install gnupg2 >> $LOG
324324
check_result $? "Can't install gnupg2"

0 commit comments

Comments
 (0)