mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-24 02:27:28 +01:00
use new koji-gencert
This commit is contained in:
parent
7a5c978125
commit
0f33fc3a55
@ -88,8 +88,12 @@ else
|
|||||||
sed '/^\/mnt\/koji/ s/$/ $KOJI_BUILD_FQDN(ro,no_root_squash)/' /etc/exports
|
sed '/^\/mnt\/koji/ s/$/ $KOJI_BUILD_FQDN(ro,no_root_squash)/' /etc/exports
|
||||||
|
|
||||||
# Generate a certificate for the builder
|
# Generate a certificate for the builder
|
||||||
|
if [ ! -f $SCRIPT_DIR/koji-gencert.sh ] ; then
|
||||||
|
curl $SILENT $SCRIPT_GIT/koji-gencert.sh > $SCRIPT_DIR/koji-gencert.sh
|
||||||
|
fi
|
||||||
|
cp $SCRIPT_DIR/koji-gencert.sh $KOJI_PKI_DIR/.
|
||||||
pushd "$KOJI_PKI_DIR"
|
pushd "$KOJI_PKI_DIR"
|
||||||
./gencert.sh "$KOJI_BUILD_FQDN" "/C=$COUNTRY_CODE/ST=$STATE/L=$LOCATION/O=$ORGANIZATION/CN=$KOJI_BUILD_FQDN"
|
./koji-gencert.sh "$KOJI_BUILD_FQDN" "/C=$COUNTRY_CODE/ST=$STATE/L=$LOCATION/O=$ORGANIZATION/CN=$KOJI_BUILD_FQDN"
|
||||||
popd
|
popd
|
||||||
# generate a hub ssl key if there isn't one already (for scp & ssh to builder)
|
# generate a hub ssl key if there isn't one already (for scp & ssh to builder)
|
||||||
if [ ! -f /root/.ssh/id-rsa ] ; then
|
if [ ! -f /root/.ssh/id-rsa ] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user