tidy up debug

This commit is contained in:
Trevor Batley 2023-09-04 20:30:28 +10:00
parent a07acd1b9a
commit d5a74ece64
4 changed files with 7 additions and 5 deletions

View File

@ -75,6 +75,8 @@ if [ $KOJI_BUILD_FQDN eq $KOJI_HUB_FQDN ] ; then
fi
koji-deploy-builder.sh $DEBUG
else
# deploy to specified server
## On the HUB
# check if nfs has been installed on the hub (only need to install once)
if [ -z $(dnf list installed | grep nfs-server) ] ; then
@ -84,7 +86,7 @@ else
koji-deploy-nfs-server.sh $DEBUG
fi
# add build server to nfs exports line
# add build server to nfs exports line for /mnt/koji
sed '/^\/mnt\/koji/ s/$/ $KOJI_BUILD_FQDN(ro,no_root_squash)/' /etc/exports
# Generate a certificate for the builder

View File

@ -17,7 +17,7 @@ for param in $1 $2 ; do
done
if [ $DEBUG ] ; then
set -x
set -xe
SILENT=
QUIET="-v"
fi

View File

@ -18,7 +18,7 @@ for param in $1 $2 ; do
done
if [ $DEBUG ] ; then
set -x
set -xe
SILENT=
QUIET="-v"
fi
@ -37,7 +37,7 @@ if [ -z $(dnf list installed | grep epel-release) ] ; then
dnf install -y epel-release $QUIET
fi
if [ -z $(dnf list installed | grep koji-builder) ] ; then
dnf install -y koji-builder
dnf install -y koji-builder $QUIET
fi
# Create mock folders and permissions

View File

@ -20,7 +20,7 @@ for param in $3 ; do
done
if [ $DEBUG ] ; then
set -x
set -xe
SILENT=
QUIET="-v"
fi