Add alternate method to sync time inside the docker

This commit is contained in:
herlesupreeth
2020-09-25 08:09:00 +02:00
parent f9c33ccfa4
commit 27fad29530
16 changed files with 47 additions and 2 deletions

View File

@@ -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 ''"