Skip to content

Commit

Permalink
2709: Fix an expired Nginx signing key
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjn committed Jun 14, 2024
1 parent c425018 commit d9d016a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 31 deletions.
Binary file not shown.
28 changes: 0 additions & 28 deletions provision/core/nginx/apt-keys/nginx_signing.key

This file was deleted.

11 changes: 8 additions & 3 deletions provision/core/nginx/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ function nginx_register_apt_sources() {
fi
}
vvv_add_hook register_apt_sources nginx_register_apt_sources

function nginx_register_apt_keys() {
# Before running `apt-get update`, we should add the public keys for
# the packages that we are installing from non standard sources via
# our appended apt source.list
if vvv_apt_keys_has '573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62'; then
# Retrieve the Nginx signing key from nginx.org
vvv_info " * Replacing expired Nginx signing key..."
apt-key add /srv/provision/core/nginx/apt-keys/nginx-archive-keyring.gpg
fi

if ! vvv_apt_keys_has 'nginx'; then
# Retrieve the Nginx signing key from nginx.org
vvv_info " * Applying Nginx signing key..."
apt-key add /srv/provision/core/nginx/apt-keys/nginx_signing.key
vvv_info " * Adding Nginx signing key..."
apt-key add /srv/provision/core/nginx/apt-keys/nginx-archive-keyring.gpg
fi
}
vvv_add_hook register_apt_keys nginx_register_apt_keys
Expand Down

0 comments on commit d9d016a

Please sign in to comment.