diff options
-rwxr-xr-x | InstallItAll.sh | 31 |
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 | ||
79 | cd current | 79 | cd current |
80 | 80 | ||
81 | sudo chown -R $OS_USER:$OS_USER $OSPATH | ||
82 | sudo chmod -R 775 $OSPATH | ||
83 | sudo chmod -R a-x $OSPATH | ||
84 | sudo chmod -R a+X $OSPATH | ||
85 | sudo chmod -R g+w $OSPATH | ||
86 | sudo chmod -R a+x $OSPATH/current/scripts/*.sh | ||
87 | sudo chmod a+x $OSPATH/current/scripts/show-console | ||
88 | sudo chmod a+x $OSPATH/current/scripts/start-sim | ||
89 | |||
90 | for dir in AssetFiles backups caches config db logs | 81 | for dir in AssetFiles backups caches config db logs |
91 | do | 82 | do |
92 | if [ ! -f ../$dir ]; then | 83 | if [ ! -f ../$dir ]; then |
@@ -96,16 +87,30 @@ do | |||
96 | fi | 87 | fi |
97 | done | 88 | done |
98 | 89 | ||
99 | sudo chmod ug+rwx $OSPATH/config | ||
100 | sudo chmod g+s $OSPATH/config | ||
101 | sudo chmod 600 $OSPATH/config/config.ini | ||
102 | |||
103 | pushd config/ROBUST >/dev/null | 90 | pushd config/ROBUST >/dev/null |
104 | sudo ln -fs ../../current/scripts/common.sh common.sh | 91 | sudo ln -fs ../../current/scripts/common.sh common.sh |
105 | sudo ln -fs ../../current/scripts/start-sim start-sim | 92 | sudo ln -fs ../../current/scripts/start-sim start-sim |
106 | sudo ln -fs ../../current/scripts/start-sim stop-sim | 93 | sudo ln -fs ../../current/scripts/start-sim stop-sim |
107 | popd >/dev/null | 94 | popd >/dev/null |
108 | 95 | ||
96 | echo "Building OpenSim." | ||
97 | ./runprebuild.sh | ||
98 | ./nant-color | ||
99 | |||
100 | echo "Securing OpenSim." | ||
101 | sudo chown -R $OS_USER:$OS_USER $OSPATH | ||
102 | sudo chmod -R 775 $OSPATH | ||
103 | sudo chmod -R a-x $OSPATH | ||
104 | sudo chmod -R a+X $OSPATH | ||
105 | sudo chmod -R g+w $OSPATH | ||
106 | sudo chmod -R a+x $OSPATH/current/scripts/*.sh | ||
107 | sudo chmod a+x $OSPATH/current/scripts/show-console | ||
108 | sudo chmod a+x $OSPATH/current/scripts/start-sim | ||
109 | |||
110 | sudo chmod ug+rwx $OSPATH/config | ||
111 | sudo chmod g+s $OSPATH/config | ||
112 | sudo chmod 600 $OSPATH/config/config.ini | ||
113 | |||
109 | sudo sed -i "s@MYSQL_HOST@${MYSQL_HOST}@g" config/config.ini | 114 | sudo sed -i "s@MYSQL_HOST@${MYSQL_HOST}@g" config/config.ini |
110 | sudo sed -i "s@MYSQL_DB@${MYSQL_DB}@g" config/config.ini | 115 | sudo sed -i "s@MYSQL_DB@${MYSQL_DB}@g" config/config.ini |
111 | sudo sed -i "s@MYSQL_USER@${MYSQL_USER}@g" config/config.ini | 116 | sudo sed -i "s@MYSQL_USER@${MYSQL_USER}@g" config/config.ini |