mirror of
https://github.com/deajan/obackup.git
synced 2024-11-15 04:03:41 +01:00
Only install rngd on travis
This commit is contained in:
parent
8b5965ae4a
commit
ead5712c90
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
## obackup basic tests suite 2018110602
|
||||
## obackup basic tests suite 2019011401
|
||||
|
||||
# Supported environment variables
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
#TODO Encrypted Pull runs on F25 fail for decryption
|
||||
# If gpg key generation hangs, please install and configure rngd service
|
||||
#eg yum install rng-tools ; systemctl start rngd
|
||||
# or yum install epel-release && yum innstall haveged && systemctl start haveged
|
||||
|
||||
if [ "$SKIP_REMOTE" == "" ]; then
|
||||
SKIP_REMOTE=false
|
||||
@ -142,6 +143,7 @@ Passphrase: PassPhrase123
|
||||
%echo done
|
||||
EOF
|
||||
|
||||
if TRAVIS_RUN=true
|
||||
if type apt-get > /dev/null 2>&1; then
|
||||
sudo apt-get install rng-tools
|
||||
fi
|
||||
@ -152,6 +154,7 @@ EOF
|
||||
else
|
||||
echo "No rngd support"
|
||||
fi
|
||||
fi
|
||||
|
||||
$CRYPT_TOOL --batch --gen-key gpgcommand
|
||||
echo "Currently owned $CRYPT_TOOL keys"
|
||||
|
Loading…
Reference in New Issue
Block a user