debian-koji-osbuild/test/container/builder/run-kojid.sh
Ondřej Budai e2010fed21 spec: set the default release to 1
The release number in the RPMland canonically starts at 1, not at 0. I think
it technically doesn't cause any harm but let's stick to what all other packages
do.
2022-05-04 18:17:59 +02:00

23 lines
711 B
Bash
Executable file

#!/bin/bash
set -ux
if ls /share/rpms/*.rpm 1> /dev/null 2>&1; then
echo "Using RPMs"
rpm -i /share/rpms/koji-osbuild-?-1.*.rpm \
/share/rpms/koji-osbuild-builder-*.rpm
else
echo "Using local plugin"
mkdir -p /usr/lib/koji-builder-plugins/
cp /share/plugins/builder/osbuild.py /usr/lib/koji-builder-plugins/
fi
KOJI="koji --server=http://org.osbuild.koji.koji/kojihub --user=kojiadmin --password=kojipass --authtype=password"
$KOJI add-host org.osbuild.koji.kojid i386 x86_64
if [ $? -eq 0 ]; then
$KOJI add-host-to-channel org.osbuild.koji.kojid image
$KOJI add-host-to-channel org.osbuild.koji.kojid createrepo
fi
/usr/sbin/kojid -d -v -f --force-lock || cat /var/log/kojid.log