Changeset View
Changeset View
Standalone View
Standalone View
roles/dpkg-repo/repo/files/sign-freebsd-repo.sh.jinja
- This file was added.
#!/bin/sh | |||||
# ------------------------------------------------------------- | |||||
# FreeBSD repository | |||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |||||
# Project: Nasqueron | |||||
# License: Trivial work, not eligible to copyright | |||||
# Source: man 8 pkg-repo | |||||
# Source file: roles/freebsd-repo/repo/files/sign-freebsd-repo.sh.jinja | |||||
# ------------------------------------------------------------- | |||||
# | |||||
# <auto-generated> | |||||
# This file is managed by our rOPS SaltStack repository. | |||||
# | |||||
# Changes to this file may cause incorrect behavior | |||||
# and will be lost if the state is redeployed. | |||||
# </auto-generated> | |||||
KEY_DIR={{ keydir }} | |||||
read -t 2 sum | |||||
[ -z "$sum" ] && exit 1 | |||||
echo SIGNATURE | |||||
echo -n "$sum" | /usr/bin/openssl dgst -sign "$KEY_DIR/repo.key" -sha256 -binary | |||||
echo | |||||
echo CERT | |||||
cat "$KEY_DIR/repo.pub" | |||||
echo END |
Nasqueron DevCentral · If it had been much bigger the moon would have had a core of ice. · Powered by Phabricator