1
0
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:
deajan 2019-01-14 15:00:06 +01:00
parent 8b5965ae4a
commit ead5712c90

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
## obackup basic tests suite 2018110602 ## obackup basic tests suite 2019011401
# Supported environment variables # Supported environment variables
@ -12,6 +12,7 @@
#TODO Encrypted Pull runs on F25 fail for decryption #TODO Encrypted Pull runs on F25 fail for decryption
# If gpg key generation hangs, please install and configure rngd service # If gpg key generation hangs, please install and configure rngd service
#eg yum install rng-tools ; systemctl start rngd #eg yum install rng-tools ; systemctl start rngd
# or yum install epel-release && yum innstall haveged && systemctl start haveged
if [ "$SKIP_REMOTE" == "" ]; then if [ "$SKIP_REMOTE" == "" ]; then
SKIP_REMOTE=false SKIP_REMOTE=false
@ -142,15 +143,17 @@ Passphrase: PassPhrase123
%echo done %echo done
EOF EOF
if type apt-get > /dev/null 2>&1; then if TRAVIS_RUN=true
sudo apt-get install rng-tools if type apt-get > /dev/null 2>&1; then
fi sudo apt-get install rng-tools
fi
# Setup fast entropy # Setup fast entropy
if type rngd > /dev/null 2>&1; then if type rngd > /dev/null 2>&1; then
$SUDO_CMD rngd -r /dev/urandom $SUDO_CMD rngd -r /dev/urandom
else else
echo "No rngd support" echo "No rngd support"
fi
fi fi
$CRYPT_TOOL --batch --gen-key gpgcommand $CRYPT_TOOL --batch --gen-key gpgcommand