aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xInstallItAll.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/InstallItAll.sh b/InstallItAll.sh
index 27d68df..1efd0f5 100755
--- a/InstallItAll.sh
+++ b/InstallItAll.sh
@@ -54,7 +54,7 @@ echo "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 nant nunit uuid-runtime monit mc
55sudo /etc/init.d/mysql restart 55sudo /etc/init.d/mysql restart
56 56
57echo "Setting up mySQL." 57echo "Setting up OpenSim users."
58# "create user if not exists" doesn't exist until MySQL 5.7, so we have to put up with a warning, which we can ignore. 58# "create user if not exists" doesn't exist until MySQL 5.7, so we have to put up with a warning, which we can ignore.
59mysql -u root -p -h localhost << zzzzEOFzzz 59mysql -u root -p -h localhost << zzzzEOFzzz
60create database if not exists $MYSQL_DB; 60create database if not exists $MYSQL_DB;
@@ -65,10 +65,14 @@ grant all on $MYSQL_DB.* to $OS_USER@localhost;
65FLUSH PRIVILEGES; 65FLUSH PRIVILEGES;
66zzzzEOFzzz 66zzzzEOFzzz
67 67
68echo "Setting up OpenSim."
69sudo adduser --system --shell /bin/bash --group $OS_USER 68sudo adduser --system --shell /bin/bash --group $OS_USER
70sudo addgroup $USER $OS_USER 69sudo addgroup $USER $OS_USER
71 70
71echo "Building OpenSim."
72./runprebuild.sh
73./nant-color
74
75echo "Setting up OpenSim."
72sudo rm -fr $OSPATH/opensim-IG_* 76sudo rm -fr $OSPATH/opensim-IG_*
73sudo mkdir -p $OSPATH/opensim-IG_$OSVER 77sudo mkdir -p $OSPATH/opensim-IG_$OSVER
74sudo cp -fr $PRGDIR/* $OSPATH/opensim-IG_$OSVER 78sudo cp -fr $PRGDIR/* $OSPATH/opensim-IG_$OSVER
@@ -93,10 +97,6 @@ sudo ln -fs ../../current/scripts/start-sim start-sim
93sudo ln -fs ../../current/scripts/start-sim stop-sim 97sudo ln -fs ../../current/scripts/start-sim stop-sim
94popd >/dev/null 98popd >/dev/null
95 99
96echo "Building OpenSim."
97./runprebuild.sh
98./nant-color
99
100echo "Securing OpenSim." 100echo "Securing OpenSim."
101sudo chown -R $OS_USER:$OS_USER $OSPATH 101sudo chown -R $OS_USER:$OS_USER $OSPATH
102sudo chmod -R 775 $OSPATH 102sudo chmod -R 775 $OSPATH
@@ -124,4 +124,4 @@ sudo chmod 644 /home/$OS_USER/.tmux.conf
124 124
125sudo scripts/fix_var_run.sh 125sudo scripts/fix_var_run.sh
126 126
127echo "Done setting up OpenSim." 127echo "Done installing OpenSim."