Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769615
generate-freebsd-repo-fingerprint.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1017 B
Referenced Files
None
Subscribers
None
generate-freebsd-repo-fingerprint.sh
View Options
#!/bin/sh
# -------------------------------------------------------------
# rOPS — regenerate FreeBSD Nasqueron repository fingerprint
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2018-03-30
# Description: Read the FreeBSD Nasqueron repository public key
# and regenerate the fingerprint.
# -------------------------------------------------------------
KEY
=
/usr/local/etc/freebsd-pkg-repo/key/repo.pub
KEYS_DIR
=
roles/devserver/pkg/files/keys/trusted
FINGERPRINT
=
$KEYS_DIR
/packages.nasqueron.org.
$(
date
'+%Y%m%d01'
)
usage
()
{
echo
"You should run this script on the package builder server."
echo
"If you need to first regenerate the repository keys,"
echo
"invoke Salt with state.apply roles/freebsd-repo"
exit
1
}
[
-f
$KEY
]
||
usage
command
-v sha256 >/dev/null
2
>
&
1
||
usage
mkdir -p
$KEYS_DIR
echo
"function: sha256"
>
"
$FINGERPRINT
"
echo
"fingerprint:
$(
sha256 -q
$KEY
)
"
>>
"
$FINGERPRINT
"
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Mon, Nov 25, 16:11 (23 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260506
Default Alt Text
generate-freebsd-repo-fingerprint.sh (1017 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment