From 2ad73482b8b635707f77160a9538252b7f66ad32 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 13 Aug 2019 03:11:45 +1000 Subject: ThisSim.ini -> Actual_Name.ini And a minor typo I'm suprised survived. --- scripts/install/create_sim.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 k=0 for i in $(seq -w 1 99) do - if [ -e "sim$j" ] + if [ -e "sim$i" ] then k=$i fi @@ -70,5 +70,7 @@ sed -i "s@SIM_PORT@${PORT}@g" ThisSim.ini sed -i "s@OS_PATH@${OS_PATH}@g" opensim-monit.conf sed -i "s@SIM_NUMBER@${NUM}@g" opensim-monit.conf +mv ThisSim.ini $(sanitize "${NAME}").ini + sudo chown -R ${OS_USER}:${OS_USER} .. sudo chmod -R g+w .. -- cgit v1.1