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 if already known

This commit is contained in:
Luc Didry 2017-10-20 11:30:28 +02:00
parent 7f5339daa3
commit f17d2d3951

View file

@ -66,8 +66,16 @@ cp -a "../conf/minetest-preferences" "/etc/apt/preferences.d/00MinetestPinning"
ynh_replace_string "__CODENAME__" "$codename" "/etc/apt/preferences.d/00MinetestPinning"
if [ $(uname -m) == "armv7l" ]
then
gpg --keyserver pgpkeys.mit.edu --recv-key 7638D0442B90D010
gpg --keyserver pgpkeys.mit.edu --recv-key 8B48AD6246925553
gpg --list-keys 7638D0442B90D010 > /dev/null 2>&1
if [ $? != 0 ]
then
gpg --keyserver pgpkeys.mit.edu --recv-key 7638D0442B90D010
fi
gpg --list-keys 8B48AD6246925553 > /dev/null 2>&1
if [ $? != 0 ]
then
gpg --keyserver pgpkeys.mit.edu --recv-key 8B48AD6246925553
fi
gpg -a --export 7638D0442B90D010 | apt-key add -
gpg -a --export 8B48AD6246925553 | apt-key add -
fi