Skip to content

Commit

Permalink
gpg: add the 2024 pub key
Browse files Browse the repository at this point in the history
...and remove the old apt-get which is no longer required
  • Loading branch information
benipeled committed Dec 25, 2023
1 parent e42a7e1 commit 015e31e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packer/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DEBUG=false
BUILD_MODE='release'
TARGET=
APT_KEYS_DIR='/etc/apt/keyrings'
APT_KEY='d0a112e067426ab2'
APT_KEY='d0a112e067426ab2 491c93b9de7496a7'

print_usage() {
echo "$0 --localdeb --repo [URL] --target [distribution]"
Expand Down
3 changes: 1 addition & 2 deletions packer/scylla_install_image
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ if __name__ == '__main__':
print('Error: need to specify --localdeb or --repo/--repo-for-install')
sys.exit(1)

run('apt-key adv --keyserver keyserver.ubuntu.com --recv-keys d0a112e067426ab2', shell=True, check=True)
run(f'mkdir -p {apt_keys_dir}; gpg --homedir /tmp --no-default-keyring --keyring {apt_keys_dir}/scylladb.gpg '
f'--keyserver hkp://keyserver.ubuntu.com:80 --recv-keys d0a112e067426ab2', shell=True, check=True)
f'--keyserver hkp://keyserver.ubuntu.com:80 --recv-keys d0a112e067426ab2 491c93b9de7496a7', shell=True, check=True)

if args.repo_for_install:
run(f'curl -L -o /etc/apt/sources.list.d/scylla_install.list {args.repo_for_install}', shell=True, check=True)
Expand Down

0 comments on commit 015e31e

Please sign in to comment.