diff options
Diffstat (limited to 'InstallItAll.sh')
-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 | ||