mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-21 17:17:28 +01:00
remove KOJI_MOUNT_DIR
This commit is contained in:
parent
87893cb52d
commit
ace13a2d14
@ -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]
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user