From 53baef9042cb30d29a66933da105029101b455d3 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 23 May 2019 21:50:45 +1000 Subject: Management scripts encounters the real world, needs patching up. --- InstallItAll.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'InstallItAll.sh') 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 # "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. mysql -u root -p -h localhost << zzzzEOFzzz create database if not exists $MYSQL_DB; -create user '$OS_USER' identified by '$MYSQL_PASSWORD'; -create user '$OS_USER'@localhost identified by '$MYSQL_PASSWORD'; -grant all on $MYSQL_DB.* to '$OS_USER'; -grant all on $MYSQL_DB.* to '$OS_USER'@localhost; +create user '$MYSQL_USER' identified by '$MYSQL_PASSWORD'; +create user '$MYSQL_USER'@localhost identified by '$MYSQL_PASSWORD'; +grant all on $MYSQL_DB.* to '$MYSQL_USER'; +grant all on $MYSQL_DB.* to '$MYSQL_USER'@localhost; FLUSH PRIVILEGES; zzzzEOFzzz -sudo adduser --system --shell /bin/false --group ${OS_USER} +sudo adduser --system --group ${OS_USER} sudo addgroup ${USER} ${OS_USER} -- cgit v1.1