mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-21 17:17:28 +01:00
add in allowed scms as parameter
This commit is contained in:
parent
a8f05a020e
commit
91d0753de7
@ -4,16 +4,21 @@ set -e
|
||||
DEBUG=
|
||||
KOJI_HUB_FQDN="$(hostname -f)"
|
||||
KOJI_WEB_FQDN=$KOJI_HUB_FQDN
|
||||
KOJI_ALLOWED_SCMS="src.koozali.org:/*"
|
||||
KOJI_BUILD_FQDNS=
|
||||
for param in "$@"; do
|
||||
if [ $param ] ; then
|
||||
case $param in
|
||||
-h | --help )
|
||||
echo "install-koji-farm.sh [web=<web FQDN> | build=<builder FQDN> | scm=<scm:/*> | debug]" ;;
|
||||
debug )
|
||||
DEBUG="debug" ;;
|
||||
web=* )
|
||||
KOJI_WEB_FQDN=${param#*=} ;;
|
||||
build=* )
|
||||
KOJI_BUILD_FQDNS=$KOJI_BUILD_FQDNS" "${param#*=} ;;
|
||||
scm=* )
|
||||
KOJI_ALLOWED_SCMS=$KOJI_ALLOWED_SCMS" "${param#*=} ;;
|
||||
esac
|
||||
else
|
||||
break
|
||||
@ -108,7 +113,6 @@ KOJI_DIR="/mnt/koji"
|
||||
KOJI_PKI_DIR=/etc/pki/koji
|
||||
RPM_ARCH="x86_64"
|
||||
KOJID_CAPACITY=16
|
||||
KOJI_ALLOWED_SCMS="src.koozali.org:/*"
|
||||
SRC_RPM_DIR=
|
||||
BIN_RPM_DIR=
|
||||
DEBUG_RPM_DIR=
|
||||
|
@ -65,7 +65,7 @@ user=$KOJI_BUILD_FQDN
|
||||
server=$KOJI_URL/kojihub
|
||||
topurl=$KOJI_URL/kojifiles
|
||||
use_createrepo_c=True
|
||||
allowed_scms=$KOJI_ALLOWED_SCMS
|
||||
allowed_scms=:/packages/* $KOJI_ALLOWED_SCMS
|
||||
cert = $KOJI_PKI_DIR/$KOJI_BUILD_FQDN.pem
|
||||
serverca = $KOJI_PKI_DIR/koji_ca_cert.crt
|
||||
mock_bootstrap_image=False
|
||||
|
Loading…
Reference in New Issue
Block a user