aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/InstallItAll.sh
diff options
context:
space:
mode:
Diffstat (limited to 'InstallItAll.sh')
-rwxr-xr-xInstallItAll.sh31
1 files changed, 18 insertions, 13 deletions
diff --git a/InstallItAll.sh b/InstallItAll.sh
index 89ad21b..27d68df 100755
--- a/InstallItAll.sh
+++ b/InstallItAll.sh
@@ -78,15 +78,6 @@ sudo ln -fs opensim-IG_$OSVER current
78 78
79cd current 79cd current
80 80
81sudo chown -R $OS_USER:$OS_USER $OSPATH
82sudo chmod -R 775 $OSPATH
83sudo chmod -R a-x $OSPATH
84sudo chmod -R a+X $OSPATH
85sudo chmod -R g+w $OSPATH
86sudo chmod -R a+x $OSPATH/current/scripts/*.sh
87sudo chmod a+x $OSPATH/current/scripts/show-console
88sudo chmod a+x $OSPATH/current/scripts/start-sim
89
90for dir in AssetFiles backups caches config db logs 81for dir in AssetFiles backups caches config db logs
91do 82do
92 if [ ! -f ../$dir ]; then 83 if [ ! -f ../$dir ]; then
@@ -96,16 +87,30 @@ do
96 fi 87 fi
97done 88done
98 89
99sudo chmod ug+rwx $OSPATH/config
100sudo chmod g+s $OSPATH/config
101sudo chmod 600 $OSPATH/config/config.ini
102
103pushd config/ROBUST >/dev/null 90pushd config/ROBUST >/dev/null
104sudo ln -fs ../../current/scripts/common.sh common.sh 91sudo ln -fs ../../current/scripts/common.sh common.sh
105sudo ln -fs ../../current/scripts/start-sim start-sim 92sudo ln -fs ../../current/scripts/start-sim start-sim
106sudo ln -fs ../../current/scripts/start-sim stop-sim 93sudo ln -fs ../../current/scripts/start-sim stop-sim
107popd >/dev/null 94popd >/dev/null
108 95
96echo "Building OpenSim."
97./runprebuild.sh
98./nant-color
99
100echo "Securing OpenSim."
101sudo chown -R $OS_USER:$OS_USER $OSPATH
102sudo chmod -R 775 $OSPATH
103sudo chmod -R a-x $OSPATH
104sudo chmod -R a+X $OSPATH
105sudo chmod -R g+w $OSPATH
106sudo chmod -R a+x $OSPATH/current/scripts/*.sh
107sudo chmod a+x $OSPATH/current/scripts/show-console
108sudo chmod a+x $OSPATH/current/scripts/start-sim
109
110sudo chmod ug+rwx $OSPATH/config
111sudo chmod g+s $OSPATH/config
112sudo chmod 600 $OSPATH/config/config.ini
113
109sudo sed -i "s@MYSQL_HOST@${MYSQL_HOST}@g" config/config.ini 114sudo sed -i "s@MYSQL_HOST@${MYSQL_HOST}@g" config/config.ini
110sudo sed -i "s@MYSQL_DB@${MYSQL_DB}@g" config/config.ini 115sudo sed -i "s@MYSQL_DB@${MYSQL_DB}@g" config/config.ini
111sudo sed -i "s@MYSQL_USER@${MYSQL_USER}@g" config/config.ini 116sudo sed -i "s@MYSQL_USER@${MYSQL_USER}@g" config/config.ini