aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/InstallItAll.sh
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-12-09 07:16:10 +1000
committerDavid Walter Seikel2016-12-09 07:16:10 +1000
commitf96afdb62bc05dd4c2ec4ba53a9978218bd82746 (patch)
treec369c8b35426a31aa65395c29593fc2cd93ded81 /InstallItAll.sh
parentAdd asset fixing Perl script, though likely to convert it to Lua later. (diff)
downloadopensim-SC_OLD-f96afdb62bc05dd4c2ec4ba53a9978218bd82746.zip
opensim-SC_OLD-f96afdb62bc05dd4c2ec4ba53a9978218bd82746.tar.gz
opensim-SC_OLD-f96afdb62bc05dd4c2ec4ba53a9978218bd82746.tar.bz2
opensim-SC_OLD-f96afdb62bc05dd4c2ec4ba53a9978218bd82746.tar.xz
Various little clean ups.
Diffstat (limited to 'InstallItAll.sh')
-rwxr-xr-xInstallItAll.sh36
1 files changed, 19 insertions, 17 deletions
diff --git a/InstallItAll.sh b/InstallItAll.sh
index ab1074d..124fd5a 100755
--- a/InstallItAll.sh
+++ b/InstallItAll.sh
@@ -1,12 +1,12 @@
1#!/bin/bash 1#!/bin/bash
2 2
3OSPATH="/opt/opensim_TEST" 3OSPATH="/opt/opensim"
4MYSQL_HOST="localhost" 4MYSQL_HOST="localhost"
5MYSQL_DB="InfiniteGrid" 5MYSQL_DB="InfiniteGrid"
6MYSQL_USER="opensim" 6MYSQL_USER="opensim"
7OS_USER="opensim" 7OS_USER="opensim"
8 8
9OSVER="8.2.1" 9OSVER="0.8.2.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,21 +51,21 @@ fi
51USER=$(whoami) 51USER=$(whoami)
52 52
53echo "Installing software." 53echo "Installing software."
54#sudo apt-get install mysql-server tmux mono-complete uuid-runtime monit mc 54sudo apt-get install mysql-server tmux mono-complete nant nunit uuid-runtime monit mc
55#sudo /etc/init.d/mysql restart 55sudo /etc/init.d/mysql restart
56 56
57echo "Setting up mySQL." 57echo "Setting up mySQL."
58#mysql -u root -p -h localhost << zzzzEOFzzz 58mysql -u root -p -h localhost << zzzzEOFzzz
59#create database if not exists '$MYSQL_DB'; 59create database if not exists $MYSQL_DB;
60#create user '$OS_USER' identified by '$MYSQL_PASSWORD'; 60create user $OS_USER identified by '$MYSQL_PASSWORD';
61#create user '$OS_USER'@'localhost' identified by '$MYSQL_PASSWORD'; 61create user $OS_USER@localhost identified by '$MYSQL_PASSWORD';
62#grant all on $MYSQL_DB.* to '$OS_USER'; 62grant all on $MYSQL_DB.* to $OS_USER;
63#grant all on $MYSQL_DB.* to '$OS_USER'@'localhost'; 63grant all on $MYSQL_DB.* to $OS_USER@localhost;
64#FLUSH PRIVILEGES; 64FLUSH PRIVILEGES;
65#zzzzEOFzzz 65zzzzEOFzzz
66 66
67echo "Setting up OpenSim." 67echo "Setting up OpenSim."
68sudo adduser --system --shell /bin/false --group $OS_USER 68sudo adduser --system --shell /bin/bash --group $OS_USER
69sudo addgroup $USER $OS_USER 69sudo addgroup $USER $OS_USER
70 70
71sudo rm -fr $OSPATH/opensim-IG_* 71sudo rm -fr $OSPATH/opensim-IG_*
@@ -85,9 +85,6 @@ sudo chmod -R g+w $OSPATH
85sudo chmod -R a+x $OSPATH/current/scripts/*.sh 85sudo chmod -R a+x $OSPATH/current/scripts/*.sh
86sudo chmod a+x $OSPATH/current/scripts/show-console 86sudo chmod a+x $OSPATH/current/scripts/show-console
87sudo chmod a+x $OSPATH/current/scripts/start-sim 87sudo chmod a+x $OSPATH/current/scripts/start-sim
88sudo chmod ug+rwx config
89sudo chmod g+s config
90sudo chmod 600 config/config.ini
91 88
92for dir in AssetFiles backups caches config db logs 89for dir in AssetFiles backups caches config db logs
93do 90do
@@ -96,11 +93,17 @@ do
96 sudo ln -fs ../$dir $dir 93 sudo ln -fs ../$dir $dir
97done 94done
98 95
96sudo chmod ug+rwx $OSPATH/config
97sudo chmod g+s $OSPATH/config
98sudo chmod 600 $OSPATH/config/config.ini
99
99pushd config/ROBUST >/dev/null 100pushd config/ROBUST >/dev/null
101sudo ln -fs ../../current/scripts/common.sh common.sh
100sudo ln -fs ../../current/scripts/start-sim start-sim 102sudo ln -fs ../../current/scripts/start-sim start-sim
101sudo ln -fs ../../current/scripts/start-sim stop-sim 103sudo ln -fs ../../current/scripts/start-sim stop-sim
102popd >/dev/null 104popd >/dev/null
103pushd config/sim01 >/dev/null 105pushd config/sim01 >/dev/null
106sudo ln -fs ../../current/scripts/common.sh common.sh
104sudo ln -fs ../../current/scripts/start-sim backup-sim 107sudo ln -fs ../../current/scripts/start-sim backup-sim
105sudo ln -fs ../../current/scripts/start-sim start-sim 108sudo ln -fs ../../current/scripts/start-sim start-sim
106sudo ln -fs ../../current/scripts/start-sim stop-sim 109sudo ln -fs ../../current/scripts/start-sim stop-sim
@@ -118,4 +121,3 @@ sudo chown $USER /home/$OS_USER/.tmux.conf
118sudo chmod 644 /home/$OS_USER/.tmux.conf 121sudo chmod 644 /home/$OS_USER/.tmux.conf
119 122
120sudo scripts/fix_var_run.sh 123sudo scripts/fix_var_run.sh
121sudo cat scripts/opensim-crontab.txt | sudo crontab -u $OS_USER -