aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/InstallItAll.sh
diff options
context:
space:
mode:
Diffstat (limited to 'InstallItAll.sh')
-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."