bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_autofs/0-install_autofs.sh

Christoph Galuschka 8366ce
#!/bin/bash
Christoph Galuschka 8366ce
# Author: Christoph Galuschka <tigalch@tigalch.org>
Christoph Galuschka 8366ce
Christoph Galuschka 42352a
t_Log "Running $0 - Installing required packages"
Christoph Galuschka 8366ce
t_InstallPackage autofs nfs-utils rpcbind
Christoph Galuschka 8366ce
Christoph Galuschka f15a77
t_Log 'Preparing NFS-Share and starting NFS-Server'
Christoph Galuschka f15a77
echo '/var/lib/ 127.0.0.1(ro)' >> /etc/exports
Christoph Galuschka 8366ce
t_ServiceControl rpcbind restart
Christoph Galuschka 8366ce
t_ServiceControl nfs restart
Christoph Galuschka 8366ce
Christoph Galuschka 42352a
t_Log 'verify if NFS is mountable'
Christoph Galuschka 8366ce
mount -t nfs 127.0.0.1:/var/lib /mnt
Christoph Galuschka 8366ce
ls -al /mnt | grep -q yum
Christoph Galuschka 8366ce
Christoph Galuschka 8366ce
t_CheckExitStatus $?
Christoph Galuschka 8366ce
umount /mnt