From 4f6660c0ca65fbf9b44b1283d2f40a4f99c830c7 Mon Sep 17 00:00:00 2001 From: shakasan Date: Fri, 16 Mar 2018 04:57:06 +0100 Subject: [PATCH] addKey mode changed --- core_functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core_functions.sh b/core_functions.sh index 339dea6..1fb97c7 100644 --- a/core_functions.sh +++ b/core_functions.sh @@ -218,7 +218,9 @@ function addKey () { "2") printf "[REPO] adding key $2 from $1 " printf "\n[REPO] adding key $2 from $1\n" &>> $logFile - sudo apt-key adv --keyserver $1 --recv-keys $2 - &>> $logFile + #sudo apt-key adv --keyserver $1 --recv-keys $2 - &>> $logFile + gpg --keyserver $1 --recv-keys $2 \ + && gpg -a --export $2 | sudo apt-key add - &>> $logFile ret_code=$? retCode $ret_code ;;