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:
parent
cbcb85118a
commit
b2595379b2
1 changed files with 9 additions and 1 deletions
|
@ -32,7 +32,15 @@ sudo sh -c 'echo "deb http://inverse.ca/debian-v3 $codename $codename" > sogo.li
|
|||
|
||||
|
||||
#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
|
||||
sudo apt-get update
|
||||
|
|
Loading…
Reference in a new issue