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:
parent
7f5339daa3
commit
f17d2d3951
1 changed files with 10 additions and 2 deletions
|
@ -66,8 +66,16 @@ cp -a "../conf/minetest-preferences" "/etc/apt/preferences.d/00MinetestPinning"
|
||||||
ynh_replace_string "__CODENAME__" "$codename" "/etc/apt/preferences.d/00MinetestPinning"
|
ynh_replace_string "__CODENAME__" "$codename" "/etc/apt/preferences.d/00MinetestPinning"
|
||||||
if [ $(uname -m) == "armv7l" ]
|
if [ $(uname -m) == "armv7l" ]
|
||||||
then
|
then
|
||||||
|
gpg --list-keys 7638D0442B90D010 > /dev/null 2>&1
|
||||||
|
if [ $? != 0 ]
|
||||||
|
then
|
||||||
gpg --keyserver pgpkeys.mit.edu --recv-key 7638D0442B90D010
|
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
|
gpg --keyserver pgpkeys.mit.edu --recv-key 8B48AD6246925553
|
||||||
|
fi
|
||||||
gpg -a --export 7638D0442B90D010 | apt-key add -
|
gpg -a --export 7638D0442B90D010 | apt-key add -
|
||||||
gpg -a --export 8B48AD6246925553 | apt-key add -
|
gpg -a --export 8B48AD6246925553 | apt-key add -
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue