1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/sogo_ynh.git synced 2024-09-03 20:26:07 +02:00

Try some time to install the gnupg key

This commit is contained in:
Josué Tille 2019-01-22 16:47:33 +01:00
parent cbcb85118a
commit b2595379b2
No known key found for this signature in database
GPG key ID: D5E068C6DFA8681D

View file

@ -32,7 +32,15 @@ sudo sh -c 'echo "deb http://inverse.ca/debian-v3 $codename $codename" > sogo.li
#Add Repository Key #Add Repository Key
sudo apt-key adv --keyserver keys.gnupg.net --recv-key 0x810273C4
# because sometime it fail. So try some time before to exit
i=0
while ! apt-key adv --keyserver keys.gnupg.net --recv-key 0x810273C4; do
if [[ $((i++)) -gt 10 ]]; then
ynh_die "Error while get gnupg key"
fi
sleep 1
done
#Update Package Cache #Update Package Cache
sudo apt-get update sudo apt-get update