mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
[copr] copr-keygen: fix backup script
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# used as root
|
||||
# root gpg keychain should have PUBLIC key with `user email` infra@fedoraproject.org
|
||||
# root gpg keychain should have PUBLIC key with `user email` admin@fedoraproject.org
|
||||
|
||||
PATH_TO_KEYRING_DIR="/var/lib/copr-keygen"
|
||||
OUTPUT_FILE="/backup/copr_keygen_keyring.tar.gz.gpg"
|
||||
|
||||
tar -cvzf - $1 | gpg2 --output $2 --encrypt --recipient infra@fedoraproject.org
|
||||
tar -cvzf - $PATH_TO_KEYRING_DIR | gpg2 --output $OUTPUT_FILE --encrypt --recipient admin@fedoraproject.org
|
||||
|
||||
Reference in New Issue
Block a user