mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-15 17:20:25 +00:00
Set environment temp directory to /tmp
Some distros set the environment variable for the temp directory to /tmp/$USER which is owned by $USER mode 700. This prevents the mysql user from being able to access the temporary files it needs.
This commit is contained in:
parent
c6674034ee
commit
25167dea79
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@ mysql_install_datadir:
|
|||
- name: mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
|
||||
- user: root
|
||||
- creates: /var/lib/mysql/mysql/user.frm
|
||||
- env:
|
||||
- TMPDIR: '/tmp'
|
||||
- require:
|
||||
- pkg: {{ mysql.server }}
|
||||
- file: mysql_config
|
||||
|
|
Loading…
Add table
Reference in a new issue