aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/InstallItAll.sh
diff options
context:
space:
mode:
authoronefang2019-05-20 20:10:57 +1000
committeronefang2019-05-20 20:10:57 +1000
commit553748e76cbbf18ae9d29b3d081a3b44aff7474e (patch)
treec621e41b4091ca8dc49fcba7272fb63079c2e219 /InstallItAll.sh
parentAdd old TODO. (diff)
downloadopensim-SC_OLD-553748e76cbbf18ae9d29b3d081a3b44aff7474e.zip
opensim-SC_OLD-553748e76cbbf18ae9d29b3d081a3b44aff7474e.tar.gz
opensim-SC_OLD-553748e76cbbf18ae9d29b3d081a3b44aff7474e.tar.bz2
opensim-SC_OLD-553748e76cbbf18ae9d29b3d081a3b44aff7474e.tar.xz
Initial tweaks of the installation stuff.
Diffstat (limited to 'InstallItAll.sh')
-rwxr-xr-xInstallItAll.sh17
1 files changed, 6 insertions, 11 deletions
diff --git a/InstallItAll.sh b/InstallItAll.sh
index 81ff54f..db6c148 100755
--- a/InstallItAll.sh
+++ b/InstallItAll.sh
@@ -6,7 +6,7 @@ MYSQL_DB="InfiniteGrid"
6MYSQL_USER="opensim" 6MYSQL_USER="opensim"
7OS_USER="opensim" 7OS_USER="opensim"
8 8
9OSVER="0.8.2.1" 9OSVER="0.9.0.1"
10 10
11 11
12# Figure out where we are, most of this mess is to troll through soft links. 12# Figure out where we are, most of this mess is to troll through soft links.
@@ -51,7 +51,9 @@ fi
51USER=$(whoami) 51USER=$(whoami)
52 52
53echo "Installing software." 53echo "Installing software."
54sudo apt-get install mysql-server tmux mono-complete mono-gmcs nant nunit uuid-runtime monit mc 54sudo apt-get install mysql-server tmux mono-complete mono-gmcs nunit uuid-runtime monit mc
55# nant is done separately, coz it was removed from Debian for some mysterious reason.
56sudo apt-get install nant
55sudo /etc/init.d/mysql restart 57sudo /etc/init.d/mysql restart
56 58
57echo "Setting up OpenSim users." 59echo "Setting up OpenSim users."
@@ -70,10 +72,7 @@ sudo adduser --system --shell /bin/false --group $OS_USER
70sudo addgroup $USER $OS_USER 72sudo addgroup $USER $OS_USER
71 73
72echo "Building OpenSim." 74echo "Building OpenSim."
73./runprebuild.sh 75./BuildIt.sd
74./nant-color
75#xbuild /target:clean
76#xbuild /p:TargetFrameworkVersion="v4.5"
77 76
78echo "Setting up OpenSim." 77echo "Setting up OpenSim."
79sudo rm -fr $OSPATH/opensim-IG_* 78sudo rm -fr $OSPATH/opensim-IG_*
@@ -88,9 +87,7 @@ cd current
88for dir in AssetFiles backups caches config db logs 87for dir in AssetFiles backups caches config db logs
89do 88do
90 if [ ! -f ../$dir ]; then 89 if [ ! -f ../$dir ]; then
91 sudo cp -fr $dir .. 90 sudo cp -fr example/$dir ..
92 sudo rm -fr $dir
93 sudo ln -fs ../$dir $dir
94 fi 91 fi
95done 92done
96 93
@@ -125,6 +122,4 @@ sudo cp scripts/opensim.tmux.conf /home/$OS_USER/.tmux.conf
125sudo chown $USER /home/$OS_USER/.tmux.conf 122sudo chown $USER /home/$OS_USER/.tmux.conf
126sudo chmod 644 /home/$OS_USER/.tmux.conf 123sudo chmod 644 /home/$OS_USER/.tmux.conf
127 124
128sudo scripts/fix_var_run.sh
129sudo cat scripts/opensim-crontab.txt | sudo crontab -u $OS_USER -
130echo "Done installing OpenSim." 125echo "Done installing OpenSim."