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 ;;