2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 23:48:24 +00:00

ubuntu specific changes

This commit is contained in:
Ameya Shenoy 2018-01-19 06:23:56 +05:30
parent 8e1a73ffb2
commit fc65f1d9a0
No known key found for this signature in database
GPG Key ID: 735490161CD5C91E
2 changed files with 11 additions and 3 deletions

View File

@ -14,6 +14,16 @@
stat: path="{{ bench_path }}/sites/site1.local"
register: site_folder
- name: Add additional conf for MariaDB 10.2 in mariadb.conf.d
blockinfile:
path: /etc/mysql/conf.d/settings.cnf
block: |
# Import all .cnf files from configuration directory
!includedir /etc/mysql/mariadb.conf.d/
become: yes
become_user: root
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian'
- name: Add additional conf for MariaDB 10.2 in mariadb.conf.d
blockinfile:
path: /etc/mysql/mariadb.conf.d/erpnext.cnf
@ -24,6 +34,7 @@
create: yes
become: yes
become_user: root
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian'
- name: restart mysql
service: name=mysql state=restarted

View File

@ -59,6 +59,3 @@ slow-query-log-file = /var/lib/mysql/mysql-slow.log
[mysql]
default-character-set = utf8mb4
# Import all .cnf files from configuration directory
!includedir /etc/mysql/mariadb.conf.d/