aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/InstallItAll.sh
diff options
context:
space:
mode:
Diffstat (limited to 'InstallItAll.sh')
-rwxr-xr-xInstallItAll.sh10
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.
50mysql -u root -p -h localhost << zzzzEOFzzz 50mysql -u root -p -h localhost << zzzzEOFzzz
51create database if not exists $MYSQL_DB; 51create database if not exists $MYSQL_DB;
52create user '$OS_USER' identified by '$MYSQL_PASSWORD'; 52create user '$MYSQL_USER' identified by '$MYSQL_PASSWORD';
53create user '$OS_USER'@localhost identified by '$MYSQL_PASSWORD'; 53create user '$MYSQL_USER'@localhost identified by '$MYSQL_PASSWORD';
54grant all on $MYSQL_DB.* to '$OS_USER'; 54grant all on $MYSQL_DB.* to '$MYSQL_USER';
55grant all on $MYSQL_DB.* to '$OS_USER'@localhost; 55grant all on $MYSQL_DB.* to '$MYSQL_USER'@localhost;
56FLUSH PRIVILEGES; 56FLUSH PRIVILEGES;
57zzzzEOFzzz 57zzzzEOFzzz
58 58
59sudo adduser --system --shell /bin/false --group ${OS_USER} 59sudo adduser --system --group ${OS_USER}
60sudo addgroup ${USER} ${OS_USER} 60sudo addgroup ${USER} ${OS_USER}
61 61
62 62