RSS Git Download  Clone
Raw Blame History
#!/bin/sh
################################################################################
#	TmsInit		Post RPM install setup
#			T.Barnaby,	BEAM Ltd,	2017-12-10
################################################################################
#
#
# This script sets up a TMS System Controller for operation after an RPM install

# Sets up hosts
if ! grep "^# TMS" /etc/hosts > /dev/null 2>&1
then
cat >> /etc/hosts <<"EOF"

# TMS System entries
192.168.100.1	server
192.168.100.1	server.tmsnet
192.168.100.1	tmssc.tmsnet

192.168.100.1	server1
192.168.100.1	server1.tmsnet
192.168.100.1	tmssc1.tmsnet

192.168.100.2	server2
192.168.100.2	server2.tmsnet
192.168.100.2	tmssc2.tmsnet

192.168.100.101	tmsmod1.tmsnet tmsmod1
192.168.100.102	tmsmod2.tmsnet tmsmod2
192.168.100.103	tmsmod3.tmsnet tmsmod3
192.168.100.104	tmsmod4.tmsnet tmsmod4
EOF
fi

# Setup boapns
if ! grep "^boapns" /etc/services > /dev/null 2>&1
then
	echo "boapns        12000/tcp                # BEAM BOAP Name Server" >> /etc/services
	echo "boapns        12000/udp                # BEAM BOAP Name Server" >> /etc/services
fi

exit 0