Merge branch 'ft-gpg_no_tty'

This commit is contained in:
John Van de Meulebrouck Brendgard 2019-03-17 16:40:34 +01:00
commit 61d1c1c9b7
No known key found for this signature in database
GPG key ID: 807A5FD4B3337B77
2 changed files with 5 additions and 5 deletions

View file

@ -51,7 +51,7 @@ fi
if [ "$cmd_do_bootstrap" = "yes" ]; then
scp apt/cosmos_1.5-1_all.deb apt/bootstrap-cosmos.sh root@$cmd_hostname:
ssh -t root@$cmd_hostname ./bootstrap-cosmos.sh $cmd_fqdn $rrepo $rtag
ssh -t root@$cmd_hostname cosmos update
ssh -t root@$cmd_hostname cosmos apply
ssh root@$cmd_hostname ./bootstrap-cosmos.sh $cmd_fqdn $rrepo $rtag
ssh root@$cmd_hostname cosmos update
ssh root@$cmd_hostname cosmos apply
fi

View file

@ -55,10 +55,10 @@ for k in $COSMOS_KEYS/*.pub; do
if [[ ! ${KEYRING[$fp]} ]]; then
echo -e "$0: ${bold}Importing new key ${fp}${reset} from ${k}"
cosmos gpg --import < $k
cosmos gpg --no-tty --import < $k
elif [[ ${EXPIRED[$fp]} ]]; then
echo -e "$0: ${bold}Re-importing expired key ${fp}${reset} from ${k}"
cosmos gpg --import < $k
cosmos gpg --no-tty --import < $k
fi
done