aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2017-02-15 21:36:10 +1000
committerDavid Walter Seikel2017-02-15 21:36:10 +1000
commitab68a12e7311920c09ce1e55d82b88d1c11d5970 (patch)
treee8c31f354c5579042d2c4d6d0f77bfa65c54cc5b
parentInclude some missing dlls that should be in the source repo. (diff)
downloadopensim-SC_OLD-ab68a12e7311920c09ce1e55d82b88d1c11d5970.zip
opensim-SC_OLD-ab68a12e7311920c09ce1e55d82b88d1c11d5970.tar.gz
opensim-SC_OLD-ab68a12e7311920c09ce1e55d82b88d1c11d5970.tar.bz2
opensim-SC_OLD-ab68a12e7311920c09ce1e55d82b88d1c11d5970.tar.xz
Fix up the install script a bit.
-rwxr-xr-xInstallItAll.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/InstallItAll.sh b/InstallItAll.sh
index 062f111..89ad21b 100755
--- a/InstallItAll.sh
+++ b/InstallItAll.sh
@@ -51,10 +51,11 @@ fi
51USER=$(whoami) 51USER=$(whoami)
52 52
53echo "Installing software." 53echo "Installing software."
54sudo apt-get install mysql-server tmux mono-complete 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 mySQL."
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.
58mysql -u root -p -h localhost << zzzzEOFzzz 59mysql -u root -p -h localhost << zzzzEOFzzz
59create database if not exists $MYSQL_DB; 60create database if not exists $MYSQL_DB;
60create user $OS_USER identified by '$MYSQL_PASSWORD'; 61create user $OS_USER identified by '$MYSQL_PASSWORD';
@@ -104,12 +105,6 @@ sudo ln -fs ../../current/scripts/common.sh common.sh
104sudo ln -fs ../../current/scripts/start-sim start-sim 105sudo ln -fs ../../current/scripts/start-sim start-sim
105sudo ln -fs ../../current/scripts/start-sim stop-sim 106sudo ln -fs ../../current/scripts/start-sim stop-sim
106popd >/dev/null 107popd >/dev/null
107pushd config/sim01 >/dev/null
108sudo ln -fs ../../current/scripts/common.sh common.sh
109sudo ln -fs ../../current/scripts/start-sim backup-sim
110sudo ln -fs ../../current/scripts/start-sim start-sim
111sudo ln -fs ../../current/scripts/start-sim stop-sim
112popd >/dev/null
113 108
114sudo sed -i "s@MYSQL_HOST@${MYSQL_HOST}@g" config/config.ini 109sudo sed -i "s@MYSQL_HOST@${MYSQL_HOST}@g" config/config.ini
115sudo sed -i "s@MYSQL_DB@${MYSQL_DB}@g" config/config.ini 110sudo sed -i "s@MYSQL_DB@${MYSQL_DB}@g" config/config.ini
@@ -123,3 +118,5 @@ sudo chown $USER /home/$OS_USER/.tmux.conf
123sudo chmod 644 /home/$OS_USER/.tmux.conf 118sudo chmod 644 /home/$OS_USER/.tmux.conf
124 119
125sudo scripts/fix_var_run.sh 120sudo scripts/fix_var_run.sh
121
122echo "Done setting up OpenSim."