Skip to content
Snippets Groups Projects
Unverified Commit 1a8916ac authored by David Beniamine's avatar David Beniamine
Browse files

used unified password file

parent 8d706300
Branches
No related tags found
No related merge requests found
......@@ -49,6 +49,13 @@ then
echo "password=${MYSQL_ROOT_PASSWORD}"
} | tee '/root/.my.cnf' > "${HOME}/.my.cnf";
chmod 400 '/root/.my.cnf' "${HOME}/.my.cnf";
echo "Save root password to /root/.passwords file"
{
echo "[mysql]"
echo "user=root"
echo "password=${MYSQL_ROOT_PASSWORD}"
} >> "/root/.passwords";
chmod 400 "/root/.passwords";
else
echo "MySQL already configured" >&2
exit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment