mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-24 18:47:28 +01:00
19 lines
479 B
Bash
19 lines
479 B
Bash
|
#!/bin/bash
|
||
|
# Copyright (C) 2019 Intel Corporation
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
set -xe
|
||
|
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
|
||
|
source "$SCRIPT_DIR"/globals.sh
|
||
|
source "$SCRIPT_DIR"/parameters.sh
|
||
|
|
||
|
swupd bundle-add nfs-utils || :
|
||
|
check_dependency rpcbind
|
||
|
check_dependency rpc.nfsd
|
||
|
|
||
|
# Export server directory to be mounted by clients
|
||
|
echo "$KOJI_DIR $KOJI_SLAVE_FQDN(ro,no_root_squash)" >> /etc/exports
|
||
|
|
||
|
systemctl enable --now rpcbind
|
||
|
systemctl enable --now nfs-server
|