From 7794defeb8e724b6a20fb27463a453183f9b4810 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Fri, 20 Oct 2017 11:36:04 +0200 Subject: [PATCH] Don't import GPG keys in apt-key if already known --- scripts/install | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index c70866a..dcdea83 100755 --- a/scripts/install +++ b/scripts/install @@ -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