From f921cb712e67893b44496192e5297335ed65caf7 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 28 May 2019 06:19:38 +1000 Subject: Add [Region] .ini block. For including actual region definition in the normal .ini stack. Same as the usual Region.ini format, except we add a RegionName parameter. --- scripts/install/create_sim.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'scripts/install/create_sim.sh') diff --git a/scripts/install/create_sim.sh b/scripts/install/create_sim.sh index 08cedba..475c127 100755 --- a/scripts/install/create_sim.sh +++ b/scripts/install/create_sim.sh @@ -71,14 +71,13 @@ echo "Creating sim${NUM} on port ${PORT} @ ${LOCATION} - ${NAME}." cp -r sim_skeleton sim${NUM} cd sim${NUM} -mv My_sim.xml ${sim}.xml -sed -i "s@SIM_NAME@${NAME}@g" ${sim}.xml -sed -i "s@SIM_UUID@${UUID}@g" ${sim}.xml -sed -i "s@SIM_POS@${LOCATION}@g" ${sim}.xml -sed -i "s@SIM_IP@${IP}@g" ${sim}.xml -sed -i "s@SIM_INT_PORT@$(( ${PORT} + 1 ))@g" ${sim}.xml -sed -i "s@SIM_URL@${URL}@g" ${sim}.xml -sed -i "s@SIM_SIZE@${SIZE}@g" ${sim}.xml +sed -i "s@SIM_NAME@${NAME}@g" ThisSim.ini +sed -i "s@SIM_UUID@${UUID}@g" ThisSim.ini +sed -i "s@SIM_POS@${LOCATION}@g" ThisSim.ini +sed -i "s@SIM_IP@${IP}@g" ThisSim.ini +sed -i "s@SIM_INT_PORT@$(( ${PORT} + 1 ))@g" ThisSim.ini +sed -i "s@SIM_URL@${URL}@g" ThisSim.ini +sed -i "s@SIM_SIZE@${SIZE}@g" ThisSim.ini ln -s ../../current/scripts/common.sh common.sh ln -s ../../current/scripts/start-sim start-sim -- cgit v1.1