aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/InstallItAll.sh
diff options
context:
space:
mode:
authoronefang2019-05-23 21:50:45 +1000
committeronefang2019-05-23 21:50:45 +1000
commit53baef9042cb30d29a66933da105029101b455d3 (patch)
tree0710e1a0bfdb3b92c2daa65e2eb28558295e6f5a /InstallItAll.sh
parentUpdate the tmux config. (diff)
downloadopensim-SC_OLD-53baef9042cb30d29a66933da105029101b455d3.zip
opensim-SC_OLD-53baef9042cb30d29a66933da105029101b455d3.tar.gz
opensim-SC_OLD-53baef9042cb30d29a66933da105029101b455d3.tar.bz2
opensim-SC_OLD-53baef9042cb30d29a66933da105029101b455d3.tar.xz
Management scripts encounters the real world, needs patching up.
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