Add alternate method to sync time inside the docker
This commit is contained in:
@@ -37,6 +37,9 @@ while true; do
|
||||
echo 'quit' | mysql --connect-timeout=1 && break
|
||||
done
|
||||
|
||||
# Sync docker time
|
||||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
# Grant privileges and set max connections
|
||||
mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' identified by 'ims' WITH GRANT OPTION;"
|
||||
mysql -u root -e "ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY ''"
|
||||
|
||||
Reference in New Issue
Block a user