diff options
Diffstat (limited to '')
-rwxr-xr-x | scripts/install/create_sim.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/install/create_sim.sh b/scripts/install/create_sim.sh index 71aabc7..6af49ac 100755 --- a/scripts/install/create_sim.sh +++ b/scripts/install/create_sim.sh | |||
@@ -13,7 +13,7 @@ cd ${OS_PATH}/config | |||
13 | k=0 | 13 | k=0 |
14 | for i in $(seq -w 1 99) | 14 | for i in $(seq -w 1 99) |
15 | do | 15 | do |
16 | if [ -e "sim$j" ] | 16 | if [ -e "sim$i" ] |
17 | then | 17 | then |
18 | k=$i | 18 | k=$i |
19 | fi | 19 | fi |
@@ -70,5 +70,7 @@ sed -i "s@SIM_PORT@${PORT}@g" ThisSim.ini | |||
70 | sed -i "s@OS_PATH@${OS_PATH}@g" opensim-monit.conf | 70 | sed -i "s@OS_PATH@${OS_PATH}@g" opensim-monit.conf |
71 | sed -i "s@SIM_NUMBER@${NUM}@g" opensim-monit.conf | 71 | sed -i "s@SIM_NUMBER@${NUM}@g" opensim-monit.conf |
72 | 72 | ||
73 | mv ThisSim.ini $(sanitize "${NAME}").ini | ||
74 | |||
73 | sudo chown -R ${OS_USER}:${OS_USER} .. | 75 | sudo chown -R ${OS_USER}:${OS_USER} .. |
74 | sudo chmod -R g+w .. | 76 | sudo chmod -R g+w .. |