aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/install
diff options
context:
space:
mode:
authoronefang2019-05-28 06:19:38 +1000
committeronefang2019-05-28 06:19:38 +1000
commitf921cb712e67893b44496192e5297335ed65caf7 (patch)
treeb3b2782530414e23400f10ecc5b718682d2745b1 /scripts/install
parentManagement scripts encounters the real world, needs patching up. (diff)
downloadopensim-SC_OLD-f921cb712e67893b44496192e5297335ed65caf7.zip
opensim-SC_OLD-f921cb712e67893b44496192e5297335ed65caf7.tar.gz
opensim-SC_OLD-f921cb712e67893b44496192e5297335ed65caf7.tar.bz2
opensim-SC_OLD-f921cb712e67893b44496192e5297335ed65caf7.tar.xz
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.
Diffstat (limited to 'scripts/install')
-rwxr-xr-xscripts/install/create_sim.sh15
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}."
71cp -r sim_skeleton sim${NUM} 71cp -r sim_skeleton sim${NUM}
72 72
73cd sim${NUM} 73cd sim${NUM}
74mv My_sim.xml ${sim}.xml 74sed -i "s@SIM_NAME@${NAME}@g" ThisSim.ini
75sed -i "s@SIM_NAME@${NAME}@g" ${sim}.xml 75sed -i "s@SIM_UUID@${UUID}@g" ThisSim.ini
76sed -i "s@SIM_UUID@${UUID}@g" ${sim}.xml 76sed -i "s@SIM_POS@${LOCATION}@g" ThisSim.ini
77sed -i "s@SIM_POS@${LOCATION}@g" ${sim}.xml 77sed -i "s@SIM_IP@${IP}@g" ThisSim.ini
78sed -i "s@SIM_IP@${IP}@g" ${sim}.xml 78sed -i "s@SIM_INT_PORT@$(( ${PORT} + 1 ))@g" ThisSim.ini
79sed -i "s@SIM_INT_PORT@$(( ${PORT} + 1 ))@g" ${sim}.xml 79sed -i "s@SIM_URL@${URL}@g" ThisSim.ini
80sed -i "s@SIM_URL@${URL}@g" ${sim}.xml 80sed -i "s@SIM_SIZE@${SIZE}@g" ThisSim.ini
81sed -i "s@SIM_SIZE@${SIZE}@g" ${sim}.xml
82 81
83ln -s ../../current/scripts/common.sh common.sh 82ln -s ../../current/scripts/common.sh common.sh
84ln -s ../../current/scripts/start-sim start-sim 83ln -s ../../current/scripts/start-sim start-sim