guix-install.sh: Authorize all project build farms at once.
* etc/guix-install.sh (sys_authorize_build_farms): Iterate over all hosts. Co-authored-by: Ludovic Courtès <ludo@gnu.org>master
parent
156a881001
commit
416a691cff
|
@ -492,12 +492,20 @@ sys_enable_guix_daemon()
|
||||||
}
|
}
|
||||||
|
|
||||||
sys_authorize_build_farms()
|
sys_authorize_build_farms()
|
||||||
{ # authorize the public key of the build farm
|
{ # authorize the public key(s) of the build farm(s)
|
||||||
|
local hosts=(
|
||||||
|
ci.guix.gnu.org
|
||||||
|
bordeaux.guix.gnu.org
|
||||||
|
)
|
||||||
|
|
||||||
if prompt_yes_no "Permit downloading pre-built package binaries from the \
|
if prompt_yes_no "Permit downloading pre-built package binaries from the \
|
||||||
project's build farm?"; then
|
project's build farms?"; then
|
||||||
guix archive --authorize \
|
for host in "${hosts[@]}"; do
|
||||||
< ~root/.config/guix/current/share/guix/ci.guix.gnu.org.pub \
|
local key=~root/.config/guix/current/share/guix/$host.pub
|
||||||
&& _msg "${PAS}Authorized public key for ci.guix.gnu.org"
|
[ -f "$key" ] \
|
||||||
|
&& guix archive --authorize < "$key" \
|
||||||
|
&& _msg "${PAS}Authorized public key for $host"
|
||||||
|
done
|
||||||
else
|
else
|
||||||
_msg "${INF}Skipped authorizing build farm public keys"
|
_msg "${INF}Skipped authorizing build farm public keys"
|
||||||
fi
|
fi
|
||||||
|
|
Reference in New Issue