Fix MariaDB bootstrap: use 'FLUSH PRIVILEGES' (no parentheses) and update .dockerignore
This commit is contained in:
parent
ae8fe0026d
commit
7bde250178
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
||||
seafile-server/
|
||||
seahub/
|
||||
.seafile-data/
|
||||
.git
|
||||
@ -161,7 +161,7 @@ init_mariadb() {
|
||||
log "Configuring root password and seafile database"
|
||||
"${MYSQL_BIN}" --protocol=socket --socket=/run/mysqld/mysqld.sock -uroot <<-SQL
|
||||
ALTER USER 'root'@'localhost' IDENTIFIED BY '${DB_ROOT_PASSWORD}';
|
||||
FLUSH PRIVILEGES();
|
||||
FLUSH PRIVILEGES;
|
||||
SQL
|
||||
|
||||
"${MYSQL_BIN}" --protocol=socket --socket=/run/mysqld/mysqld.sock -uroot -p"${DB_ROOT_PASSWORD}" <<-SQL
|
||||
@ -177,7 +177,7 @@ SQL
|
||||
GRANT ALL PRIVILEGES ON \`${DB_NAME_CCNET:-ccnet_db}\`.* TO '${DB_USER}'@'localhost';
|
||||
GRANT ALL PRIVILEGES ON \`${DB_NAME_SEAHUB:-seahub_db}\`.* TO '${DB_USER}'@'localhost';
|
||||
|
||||
FLUSH PRIVILEGES();
|
||||
FLUSH PRIVILEGES;
|
||||
SQL
|
||||
|
||||
log "Shutting down temporary MariaDB"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user