diff options
Diffstat (limited to 'install_opensim.sh')
-rwxr-xr-x | install_opensim.sh | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/install_opensim.sh b/install_opensim.sh index 0c8c659..14d7c42 100755 --- a/install_opensim.sh +++ b/install_opensim.sh | |||
@@ -26,8 +26,10 @@ FLUSH PRIVILEGES; | |||
26 | zzzzEOFzzz | 26 | zzzzEOFzzz |
27 | 27 | ||
28 | echo "Setting up OpenSim" | 28 | echo "Setting up OpenSim" |
29 | sudo deluser opensim | 29 | sudo deluser opensim --remove-home |
30 | sudo adduser --system --shell /bin/false --group opensim | 30 | sudo adduser --system --shell /bin/false --group opensim |
31 | sudo cp opensim.screenrc /home/opensim/.screenrc | ||
32 | sudo chmod 744 /home/opensim/.screenrc | ||
31 | sudo mkdir -p /var/log/opensim | 33 | sudo mkdir -p /var/log/opensim |
32 | sudo chown opensim:opensim /var/log/opensim | 34 | sudo chown opensim:opensim /var/log/opensim |
33 | sudo chmod 777 /var/log/opensim | 35 | sudo chmod 777 /var/log/opensim |
@@ -38,7 +40,10 @@ sudo mkdir -p /opt/opensim | |||
38 | sudo chown $USER:$USER /opt/opensim | 40 | sudo chown $USER:$USER /opt/opensim |
39 | 41 | ||
40 | cd /opt/opensim | 42 | cd /opt/opensim |
41 | wget https://github.com/downloads/infinitegrid/InfiniteGrid-Opensim/opensim-0.7.1.1-infinitegrid-03.tar.bz2 | 43 | if [ ! -e opensim-0.7.1.1-infinitegrid-03.tar.bz2 ] |
44 | then | ||
45 | wget https://github.com/downloads/infinitegrid/InfiniteGrid-Opensim/opensim-0.7.1.1-infinitegrid-03.tar.bz2 | ||
46 | fi | ||
42 | tar xjf opensim-0.7.1.1-infinitegrid-03.tar.bz2 | 47 | tar xjf opensim-0.7.1.1-infinitegrid-03.tar.bz2 |
43 | ln -s opensim-0.7.1.1-infinitegrid-03 current | 48 | ln -s opensim-0.7.1.1-infinitegrid-03 current |
44 | mkdir -p config | 49 | mkdir -p config |
@@ -56,7 +61,6 @@ mv NSLModules.Messaging.MuteList.dll ../../modules/ | |||
56 | ln -s ../../modules/NSLModules.Messaging.MuteList.dll NSLModules.Messaging.MuteList.dll | 61 | ln -s ../../modules/NSLModules.Messaging.MuteList.dll NSLModules.Messaging.MuteList.dll |
57 | mv OpenSimProfile.Modules.dll ../../modules/ | 62 | mv OpenSimProfile.Modules.dll ../../modules/ |
58 | ln -s ../../modules/OpenSimProfile.Modules.dll OpenSimProfile.Modules.dll | 63 | ln -s ../../modules/OpenSimProfile.Modules.dll OpenSimProfile.Modules.dll |
59 | #sudo chown -R opensim:opensim ../../modules | ||
60 | ln -s ../../config config | 64 | ln -s ../../config config |
61 | 65 | ||
62 | cat > OpenSim.ConsoleClient.ini << zzzzEOFzzzz | 66 | cat > OpenSim.ConsoleClient.ini << zzzzEOFzzzz |
@@ -86,5 +90,17 @@ sed -i 's@; StorageProvider = "OpenSim.Data.MySQL.dll"@StorageProvider = "OpenSi | |||
86 | sed -i "s@; ConnectionString = \"Data Source=localhost;Database=opensim;User ID=opensim;Password=\*\*\*\*;\"@ConnectionString = \"Data Source=localhost;Database=opensim;User ID=opensim;Password=$MYSQL_PASSWORD;\"@" GridCommon.ini | 90 | sed -i "s@; ConnectionString = \"Data Source=localhost;Database=opensim;User ID=opensim;Password=\*\*\*\*;\"@ConnectionString = \"Data Source=localhost;Database=opensim;User ID=opensim;Password=$MYSQL_PASSWORD;\"@" GridCommon.ini |
87 | 91 | ||
88 | cd ../../.. | 92 | cd ../../.. |
93 | |||
94 | # Setting screen to be suid. EWWWWWW!!! Security hole!! | ||
95 | #ImReallyParanoid="true" | ||
96 | if [ "x$ImReallyParanoid" = "x" ] | ||
97 | then | ||
98 | sudo chmod u+s /usr/bin/screen | ||
99 | sudo chmod g+s /usr/bin/screen | ||
100 | sudo chmod 755 /var/run/screen | ||
101 | sudo chown root:utmp /var/run/screen | ||
102 | fi | ||
103 | |||
89 | #sudo chown -R opensim:opensim opensim-0.7.1.1-infinitegrid-03 | 104 | #sudo chown -R opensim:opensim opensim-0.7.1.1-infinitegrid-03 |
105 | #sudo chown -R opensim:opensim modules | ||
90 | 106 | ||