diff options
author | onefang | 2019-07-24 17:26:44 +1000 |
---|---|---|
committer | onefang | 2019-07-24 17:26:44 +1000 |
commit | 451e158895a5ea5e1064ba28ff35b0b93105ede7 (patch) | |
tree | 5e23aab560157292dffa7562f22f5b8bc5e49050 | |
parent | Move the terrain.raw file out of tree to a sim specific name. (diff) | |
download | opensim-SC-451e158895a5ea5e1064ba28ff35b0b93105ede7.zip opensim-SC-451e158895a5ea5e1064ba28ff35b0b93105ede7.tar.gz opensim-SC-451e158895a5ea5e1064ba28ff35b0b93105ede7.tar.bz2 opensim-SC-451e158895a5ea5e1064ba28ff35b0b93105ede7.tar.xz |
Make the installation more robust.
-rwxr-xr-x | InstallItAll.sh | 5 | ||||
-rwxr-xr-x | scripts/install/secure.sh | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/InstallItAll.sh b/InstallItAll.sh index 15f7c03..3152476 100755 --- a/InstallItAll.sh +++ b/InstallItAll.sh | |||
@@ -51,8 +51,8 @@ echo "Setting up OpenSim users. This next prompt asks for your MySQL root users | |||
51 | # Otherwise you can't get in. Yep, the -p seems to still be needed. | 51 | # Otherwise you can't get in. Yep, the -p seems to still be needed. |
52 | sudo mysql -u root -p -h localhost << zzzzEOFzzz | 52 | sudo mysql -u root -p -h localhost << zzzzEOFzzz |
53 | create database if not exists $MYSQL_DB; | 53 | create database if not exists $MYSQL_DB; |
54 | create user '$MYSQL_USER' identified by '$MYSQL_PASSWORD'; | 54 | create user if not exists '$MYSQL_USER' identified by '$MYSQL_PASSWORD'; |
55 | create user '$MYSQL_USER'@localhost identified by '$MYSQL_PASSWORD'; | 55 | create user if not exists '$MYSQL_USER'@localhost identified by '$MYSQL_PASSWORD'; |
56 | grant all on $MYSQL_DB.* to '$MYSQL_USER'; | 56 | grant all on $MYSQL_DB.* to '$MYSQL_USER'; |
57 | grant all on $MYSQL_DB.* to '$MYSQL_USER'@localhost; | 57 | grant all on $MYSQL_DB.* to '$MYSQL_USER'@localhost; |
58 | FLUSH PRIVILEGES; | 58 | FLUSH PRIVILEGES; |
@@ -119,6 +119,7 @@ sudo chown -R ${USER}:${USER} ${OS_PATH} * | |||
119 | 119 | ||
120 | 120 | ||
121 | cd scripts/install | 121 | cd scripts/install |
122 | sudo chmod a+x secure.sh | ||
122 | sudo ./secure.sh | 123 | sudo ./secure.sh |
123 | 124 | ||
124 | echo "Done installing OpenSim." | 125 | echo "Done installing OpenSim." |
diff --git a/scripts/install/secure.sh b/scripts/install/secure.sh index 43ed679..db73558 100755 --- a/scripts/install/secure.sh +++ b/scripts/install/secure.sh | |||
@@ -12,6 +12,7 @@ sudo chmod -R g+w ${OS_PATH} | |||
12 | sudo chmod -R a+x ${OS_PATH}/current/*.sh | 12 | sudo chmod -R a+x ${OS_PATH}/current/*.sh |
13 | sudo chmod -R a+x ${OS_PATH}/current/scripts/*.sh | 13 | sudo chmod -R a+x ${OS_PATH}/current/scripts/*.sh |
14 | sudo chmod -R a+x ${OS_PATH}/current/scripts/install/*.sh | 14 | sudo chmod -R a+x ${OS_PATH}/current/scripts/install/*.sh |
15 | sudo chmod a+x ${OS_PATH}/current/scripts/robust-include | ||
15 | sudo chmod a+x ${OS_PATH}/current/scripts/show-console | 16 | sudo chmod a+x ${OS_PATH}/current/scripts/show-console |
16 | sudo chmod a+x ${OS_PATH}/current/scripts/start-sim | 17 | sudo chmod a+x ${OS_PATH}/current/scripts/start-sim |
17 | 18 | ||