Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > contrib > by-pkgid > e592d35f1408b2ebf11465c4cbec97bd > scriptlet

mpich2-1.0.2-2mdk.x86_64.rpm

PREIN

/bin/sh
/usr/sbin/groupadd -g 12384 -r -f mpi > /dev/null 2>&1 ||:
/usr/sbin/useradd -u 12384 -g mpi -d /var/lib/mpi -r -s /bin/bash mpi -p "" -m > /dev/null 2>&1 ||:

POSTIN

/bin/sh
STATUS=$(cat /etc/xinetd.d/rsh  | grep disable | cut -d "=" -f 2)
if [ $STATUS == "yes" ]; then
echo "Warning !!"
echo "The rsh daemon is disabled in your xinetd config file(/etc/xinetd.d/rsh), please activate it."
fi
echo "Remember that you should create a .rhosts in your home directory."
echo "Look at .rhosts in the doc directory for a sample configuration"
echo "A mpi user has been created, change it's home directory to a network file system with the other nodes"

# automatically set mpi variable
TEST_MPI_ENV=`grep MPI /etc/bashrc`
if [ -z "$TEST_MPI_ENV" ] ; then
	echo "# MPI environement" >> /etc/bashrc
	echo "MPIRUN_HOME=/usr/bin" >> /etc/bashrc
	echo "export MPIRUN_HOME" >> /etc/bashrc
fi

POSTUN

/bin/sh
/usr/share/rpm-helper/del-user mpich2 $1 mpi