diff options
-rwxr-xr-x | InstallItAll.sh | 11 |
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 | |||
51 | USER=$(whoami) | 51 | USER=$(whoami) |
52 | 52 | ||
53 | echo "Installing software." | 53 | echo "Installing software." |
54 | sudo apt-get install mysql-server tmux mono-complete nant nunit uuid-runtime monit mc | 54 | sudo apt-get install mysql-server tmux mono-complete mono-gmcs nant nunit uuid-runtime monit mc |
55 | sudo /etc/init.d/mysql restart | 55 | sudo /etc/init.d/mysql restart |
56 | 56 | ||
57 | echo "Setting up mySQL." | 57 | echo "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. | ||
58 | mysql -u root -p -h localhost << zzzzEOFzzz | 59 | mysql -u root -p -h localhost << zzzzEOFzzz |
59 | create database if not exists $MYSQL_DB; | 60 | create database if not exists $MYSQL_DB; |
60 | create user $OS_USER identified by '$MYSQL_PASSWORD'; | 61 | create user $OS_USER identified by '$MYSQL_PASSWORD'; |
@@ -104,12 +105,6 @@ sudo ln -fs ../../current/scripts/common.sh common.sh | |||
104 | sudo ln -fs ../../current/scripts/start-sim start-sim | 105 | sudo ln -fs ../../current/scripts/start-sim start-sim |
105 | sudo ln -fs ../../current/scripts/start-sim stop-sim | 106 | sudo ln -fs ../../current/scripts/start-sim stop-sim |
106 | popd >/dev/null | 107 | popd >/dev/null |
107 | pushd config/sim01 >/dev/null | ||
108 | sudo ln -fs ../../current/scripts/common.sh common.sh | ||
109 | sudo ln -fs ../../current/scripts/start-sim backup-sim | ||
110 | sudo ln -fs ../../current/scripts/start-sim start-sim | ||
111 | sudo ln -fs ../../current/scripts/start-sim stop-sim | ||
112 | popd >/dev/null | ||
113 | 108 | ||
114 | sudo sed -i "s@MYSQL_HOST@${MYSQL_HOST}@g" config/config.ini | 109 | sudo sed -i "s@MYSQL_HOST@${MYSQL_HOST}@g" config/config.ini |
115 | sudo sed -i "s@MYSQL_DB@${MYSQL_DB}@g" config/config.ini | 110 | sudo sed -i "s@MYSQL_DB@${MYSQL_DB}@g" config/config.ini |
@@ -123,3 +118,5 @@ sudo chown $USER /home/$OS_USER/.tmux.conf | |||
123 | sudo chmod 644 /home/$OS_USER/.tmux.conf | 118 | sudo chmod 644 /home/$OS_USER/.tmux.conf |
124 | 119 | ||
125 | sudo scripts/fix_var_run.sh | 120 | sudo scripts/fix_var_run.sh |
121 | |||
122 | echo "Done setting up OpenSim." | ||