remove KOJI_MOUNT_DIR

This commit is contained in:
Trevor Batley 2023-08-31 12:28:25 +10:00
parent 87893cb52d
commit ace13a2d14
3 changed files with 4 additions and 9 deletions

View File

@ -19,11 +19,7 @@ useradd -r kojibuilder
usermod -G mock kojibuilder
# Kojid Configuration Files
if [[ "$KOJI_SLAVE_FQDN" = "$KOJI_MASTER_FQDN" ]]; then
KOJI_TOP_DIR="$KOJI_DIR"
else
KOJI_TOP_DIR="$KOJI_MOUNT_DIR"
fi
KOJI_TOP_DIR="$KOJI_DIR"
mkdir -p /etc/kojid
cat > /etc/kojid/kojid.conf <<- EOF
[kojid]

View File

@ -7,7 +7,7 @@ SCRIPT_DIR="$(dirname "$(realpath "$0")")"
source "$SCRIPT_DIR"/globals.sh
source "$SCRIPT_DIR"/parameters.sh
KOJI_MOUNT_SERVICE="${KOJI_MOUNT_DIR:1}"
KOJI_MOUNT_SERVICE="${KOJI_DIR:1}"
KOJI_MOUNT_SERVICE="${KOJI_MOUNT_SERVICE/\//-}".mount
mkdir -p /etc/systemd/system
cat > /etc/systemd/system/"$KOJI_MOUNT_SERVICE" <<- EOF
@ -17,7 +17,7 @@ After=network.target
[Mount]
What=$KOJI_MASTER_FQDN:$KOJI_DIR
Where=$KOJI_MOUNT_DIR
Where=$KOJI_DIR
Type=nfs
Options=defaults,ro

View File

@ -3,8 +3,7 @@
# SPDX-License-Identifier: Apache-2.0
## KOJI RPM BUILD AND TRACKER
export KOJI_DIR=/srv/koji
export KOJI_MOUNT_DIR=/mnt/koji
export KOJI_DIR=/mnt/koji
export KOJI_MASTER_FQDN="$(hostname -f)"
# Use master FQDN if build server on master
#export KOJI_SLAVE_FQDN="$KOJI_MASTER_FQDN"