diff options
author | onefang | 2019-05-23 21:50:45 +1000 |
---|---|---|
committer | onefang | 2019-05-23 21:50:45 +1000 |
commit | 53baef9042cb30d29a66933da105029101b455d3 (patch) | |
tree | 0710e1a0bfdb3b92c2daa65e2eb28558295e6f5a /InstallItAll.sh | |
parent | Update the tmux config. (diff) | |
download | opensim-SC-53baef9042cb30d29a66933da105029101b455d3.zip opensim-SC-53baef9042cb30d29a66933da105029101b455d3.tar.gz opensim-SC-53baef9042cb30d29a66933da105029101b455d3.tar.bz2 opensim-SC-53baef9042cb30d29a66933da105029101b455d3.tar.xz |
Management scripts encounters the real world, needs patching up.
Diffstat (limited to '')
-rwxr-xr-x | InstallItAll.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/InstallItAll.sh b/InstallItAll.sh index 6467ff8..b7077b8 100755 --- a/InstallItAll.sh +++ b/InstallItAll.sh | |||
@@ -49,14 +49,14 @@ echo "Setting up OpenSim users. This next prompt asks for your MySQL root users | |||
49 | # "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. | 49 | # "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. |
50 | mysql -u root -p -h localhost << zzzzEOFzzz | 50 | mysql -u root -p -h localhost << zzzzEOFzzz |
51 | create database if not exists $MYSQL_DB; | 51 | create database if not exists $MYSQL_DB; |
52 | create user '$OS_USER' identified by '$MYSQL_PASSWORD'; | 52 | create user '$MYSQL_USER' identified by '$MYSQL_PASSWORD'; |
53 | create user '$OS_USER'@localhost identified by '$MYSQL_PASSWORD'; | 53 | create user '$MYSQL_USER'@localhost identified by '$MYSQL_PASSWORD'; |
54 | grant all on $MYSQL_DB.* to '$OS_USER'; | 54 | grant all on $MYSQL_DB.* to '$MYSQL_USER'; |
55 | grant all on $MYSQL_DB.* to '$OS_USER'@localhost; | 55 | grant all on $MYSQL_DB.* to '$MYSQL_USER'@localhost; |
56 | FLUSH PRIVILEGES; | 56 | FLUSH PRIVILEGES; |
57 | zzzzEOFzzz | 57 | zzzzEOFzzz |
58 | 58 | ||
59 | sudo adduser --system --shell /bin/false --group ${OS_USER} | 59 | sudo adduser --system --group ${OS_USER} |
60 | sudo addgroup ${USER} ${OS_USER} | 60 | sudo addgroup ${USER} ${OS_USER} |
61 | 61 | ||
62 | 62 | ||