aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/install_opensim.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install_opensim.sh')
-rwxr-xr-xinstall_opensim.sh22
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;
26zzzzEOFzzz 26zzzzEOFzzz
27 27
28echo "Setting up OpenSim" 28echo "Setting up OpenSim"
29sudo deluser opensim 29sudo deluser opensim --remove-home
30sudo adduser --system --shell /bin/false --group opensim 30sudo adduser --system --shell /bin/false --group opensim
31sudo cp opensim.screenrc /home/opensim/.screenrc
32sudo chmod 744 /home/opensim/.screenrc
31sudo mkdir -p /var/log/opensim 33sudo mkdir -p /var/log/opensim
32sudo chown opensim:opensim /var/log/opensim 34sudo chown opensim:opensim /var/log/opensim
33sudo chmod 777 /var/log/opensim 35sudo chmod 777 /var/log/opensim
@@ -38,7 +40,10 @@ sudo mkdir -p /opt/opensim
38sudo chown $USER:$USER /opt/opensim 40sudo chown $USER:$USER /opt/opensim
39 41
40cd /opt/opensim 42cd /opt/opensim
41wget https://github.com/downloads/infinitegrid/InfiniteGrid-Opensim/opensim-0.7.1.1-infinitegrid-03.tar.bz2 43if [ ! -e opensim-0.7.1.1-infinitegrid-03.tar.bz2 ]
44then
45 wget https://github.com/downloads/infinitegrid/InfiniteGrid-Opensim/opensim-0.7.1.1-infinitegrid-03.tar.bz2
46fi
42tar xjf opensim-0.7.1.1-infinitegrid-03.tar.bz2 47tar xjf opensim-0.7.1.1-infinitegrid-03.tar.bz2
43ln -s opensim-0.7.1.1-infinitegrid-03 current 48ln -s opensim-0.7.1.1-infinitegrid-03 current
44mkdir -p config 49mkdir -p config
@@ -56,7 +61,6 @@ mv NSLModules.Messaging.MuteList.dll ../../modules/
56ln -s ../../modules/NSLModules.Messaging.MuteList.dll NSLModules.Messaging.MuteList.dll 61ln -s ../../modules/NSLModules.Messaging.MuteList.dll NSLModules.Messaging.MuteList.dll
57mv OpenSimProfile.Modules.dll ../../modules/ 62mv OpenSimProfile.Modules.dll ../../modules/
58ln -s ../../modules/OpenSimProfile.Modules.dll OpenSimProfile.Modules.dll 63ln -s ../../modules/OpenSimProfile.Modules.dll OpenSimProfile.Modules.dll
59#sudo chown -R opensim:opensim ../../modules
60ln -s ../../config config 64ln -s ../../config config
61 65
62cat > OpenSim.ConsoleClient.ini << zzzzEOFzzzz 66cat > OpenSim.ConsoleClient.ini << zzzzEOFzzzz
@@ -86,5 +90,17 @@ sed -i 's@; StorageProvider = "OpenSim.Data.MySQL.dll"@StorageProvider = "OpenSi
86sed -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 90sed -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
88cd ../../.. 92cd ../../..
93
94# Setting screen to be suid. EWWWWWW!!! Security hole!!
95#ImReallyParanoid="true"
96if [ "x$ImReallyParanoid" = "x" ]
97then
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
102fi
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