diff options
author | 2022-07-11 01:52:56 +0100 | |
---|---|---|
committer | 2022-07-11 01:52:56 +0100 | |
commit | f8df7314768c5f5ee309ae63dcabd22442cce50b (patch) | |
tree | c45ba97683b1accb71dd5c1fcfd2d5d29a67d062 /keyrings-export.bash | |
parent | Bump pkgcheck2html (diff) | |
download | qa-scripts-f8df7314768c5f5ee309ae63dcabd22442cce50b.tar.gz qa-scripts-f8df7314768c5f5ee309ae63dcabd22442cce50b.tar.bz2 qa-scripts-f8df7314768c5f5ee309ae63dcabd22442cce50b.zip |
keyrings-export.bash: make weekly snapshots of keyring exports
Needed for making a sec-keys/ package.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'keyrings-export.bash')
-rwxr-xr-x | keyrings-export.bash | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/keyrings-export.bash b/keyrings-export.bash index f07df83..c9d4715 100755 --- a/keyrings-export.bash +++ b/keyrings-export.bash @@ -41,4 +41,16 @@ export_keys "${OUTPUT_DIR}"/all-devs.gpg \ "${INFRA_DEVS[@]}" \ "${RETIRED_DEVS[@]}" +for key in service-keys committing-devs active-devs infra-devs retired-devs all-devs ; do + timestamp=$(date +%Y%m%d) + + # Don't clobber existing timestamped keys for this period (weekly) + # if we're running several times a day. + if [[ -f "${OUTPUT_DIR}"/${key}-${timestamp}.gpg ]] ; then + continue + fi + + cp "${OUTPUT_DIR}"/${key}.gpg "${OUTPUT_DIR}"/${key}-${timestamp}.gpg +done + clean_tmp |