keyring-updater.sh 872 Bytes
Newer Older
1 2
#!/bin/sh

3 4 5 6
# (C) 2018 Francesco Bonanno <mibofra@parrotsec.org> , little changes for parrot arm rootfs tarballs.

## Keyring updater

7 8
set -e

9 10
mkdir keyring
cd keyring
11 12
wget -r -np --tries=10 -A .deb "http://deb.parrotsec.org/parrot/pool/main/p/parrot-archive-keyring/"
ar x deb.parrotsec.org/parrot/pool/main/p/parrot-archive-keyring/parrot-archive-keyring*.deb data.tar.xz
13
tar xf data.tar.xz ./usr/share/keyrings/parrot-archive-keyring.gpg
14 15 16 17
cp usr/share/keyrings/parrot-archive-keyring.gpg ../customization_headless/archives/parrot.key.chroot
cp usr/share/keyrings/parrot-archive-keyring.gpg ../customization_headless/archives/parrot.key.binary
cp usr/share/keyrings/parrot-archive-keyring.gpg ../customization_standard/archives/parrot.key.chroot
cp usr/share/keyrings/parrot-archive-keyring.gpg ../customization_standard/archives/parrot.key.binary
18
cd .. && rm -rf keyring