Skip to content

Commit

Permalink
, put apt keys into seperate files, rm an existing 10fai if it's not …
Browse files Browse the repository at this point in the history
…created
  • Loading branch information
Thomas Lange committed Oct 21, 2015
1 parent ab288e2 commit 987ba66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/subroutines
Expand Up @@ -1050,6 +1050,8 @@ task_repository () {
APT::Get::AllowUnauthenticated "true";
Aptitude::CmdLine::Ignore-Trust-Violations yes;
EOF
else
rm -f $FAI_ROOT/etc/apt/apt.conf.d/10fai
fi

# add apt keys for signed repositories
Expand All @@ -1064,7 +1066,7 @@ EOF
for keyfile in ${classes:-}; do
[ ! -f $FAI/package_config/$keyfile.asc ] && continue
echo -n "Loading APT key from $keyfile.asc "
cat $FAI/package_config/$keyfile.asc | $ROOTCMD apt-key add -
cat $FAI/package_config/$keyfile.asc | $ROOTCMD apt-key --keyring /etc/apt/trusted.gpg.d/$keyfile.asc.gpg add -
unset keys["$keyfile.asc"]
done

Expand Down

0 comments on commit 987ba66

Please sign in to comment.