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

Don't import GPG keys in apt-key if already known

This commit is contained in:
Luc Didry 2017-10-20 11:36:04 +02:00
parent f17d2d3951
commit 7794defeb8

View file

@ -76,8 +76,14 @@ then
then
gpg --keyserver pgpkeys.mit.edu --recv-key 8B48AD6246925553
fi
gpg -a --export 7638D0442B90D010 | apt-key add -
gpg -a --export 8B48AD6246925553 | apt-key add -
if [ $(apt-key finger | grep "7638 D044 2B90 D010" -c) == 0 ]
then
gpg -a --export 7638D0442B90D010 | apt-key add -
fi
if [ $(apt-key finger | grep "8B48 AD62 4692 5553" -c) == 0 ]
then
gpg -a --export 8B48AD6246925553 | apt-key add -
fi
fi
ynh_package_update
ynh_install_app_dependencies minetest-server