diff options
Diffstat (limited to 'scripts/install/create_sim.sh')
-rwxr-xr-x | scripts/install/create_sim.sh | 15 |
1 files changed, 7 insertions, 8 deletions
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}." | |||
71 | cp -r sim_skeleton sim${NUM} | 71 | cp -r sim_skeleton sim${NUM} |
72 | 72 | ||
73 | cd sim${NUM} | 73 | cd sim${NUM} |
74 | mv My_sim.xml ${sim}.xml | 74 | sed -i "s@SIM_NAME@${NAME}@g" ThisSim.ini |
75 | sed -i "s@SIM_NAME@${NAME}@g" ${sim}.xml | 75 | sed -i "s@SIM_UUID@${UUID}@g" ThisSim.ini |
76 | sed -i "s@SIM_UUID@${UUID}@g" ${sim}.xml | 76 | sed -i "s@SIM_POS@${LOCATION}@g" ThisSim.ini |
77 | sed -i "s@SIM_POS@${LOCATION}@g" ${sim}.xml | 77 | sed -i "s@SIM_IP@${IP}@g" ThisSim.ini |
78 | sed -i "s@SIM_IP@${IP}@g" ${sim}.xml | 78 | sed -i "s@SIM_INT_PORT@$(( ${PORT} + 1 ))@g" ThisSim.ini |
79 | sed -i "s@SIM_INT_PORT@$(( ${PORT} + 1 ))@g" ${sim}.xml | 79 | sed -i "s@SIM_URL@${URL}@g" ThisSim.ini |
80 | sed -i "s@SIM_URL@${URL}@g" ${sim}.xml | 80 | sed -i "s@SIM_SIZE@${SIZE}@g" ThisSim.ini |
81 | sed -i "s@SIM_SIZE@${SIZE}@g" ${sim}.xml | ||
82 | 81 | ||
83 | ln -s ../../current/scripts/common.sh common.sh | 82 | ln -s ../../current/scripts/common.sh common.sh |
84 | ln -s ../../current/scripts/start-sim start-sim | 83 | ln -s ../../current/scripts/start-sim start-sim |