mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 00:37:51 +00:00
Merge pull request #543 from codingCoffee/mariadb-localhost-fix
Fixed playbook to be compatible with Mariadb 10.2
This commit is contained in:
commit
94d346ccad
@ -12,6 +12,8 @@
|
|||||||
- name: move /tmp/.bench if it exists
|
- name: move /tmp/.bench if it exists
|
||||||
command: 'cp -R /tmp/.bench {{ bench_repo_path }}'
|
command: 'cp -R /tmp/.bench {{ bench_repo_path }}'
|
||||||
when: tmp_bench.stat.exists and not bench_repo_register.stat.exists
|
when: tmp_bench.stat.exists and not bench_repo_register.stat.exists
|
||||||
|
become: yes
|
||||||
|
become_user: frappe
|
||||||
|
|
||||||
- name: install bench
|
- name: install bench
|
||||||
pip: name={{ bench_repo_path }} extra_args='-e'
|
pip: name={{ bench_repo_path }} extra_args='-e'
|
||||||
|
@ -14,11 +14,27 @@
|
|||||||
stat: path="{{ bench_path }}/sites/site1.local"
|
stat: path="{{ bench_path }}/sites/site1.local"
|
||||||
register: site_folder
|
register: site_folder
|
||||||
|
|
||||||
|
- name: Link mysql.sock file for MariaDB
|
||||||
|
file:
|
||||||
|
src: "/var/lib/mysql/mysql.sock"
|
||||||
|
dest: "/var/run/mysqld/mysqld.sock"
|
||||||
|
state: link
|
||||||
|
become: yes
|
||||||
|
|
||||||
|
- name: Link mysql.pid file for MariaDB
|
||||||
|
file:
|
||||||
|
src: "/var/lib/mysql/mysql.pid"
|
||||||
|
dest: "/var/run/mysqld/mysqld.pid"
|
||||||
|
state: link
|
||||||
|
become: yes
|
||||||
|
|
||||||
- name: create a new default site
|
- name: create a new default site
|
||||||
command: bench new-site site1.local --admin-password {{ admin_password }} --mariadb-root-password {{ mysql_root_password }}
|
command: bench new-site site1.local --admin-password {{ admin_password }} --mariadb-root-password {{ mysql_root_password }}
|
||||||
args:
|
args:
|
||||||
chdir: "{{ bench_path }}"
|
chdir: "{{ bench_path }}"
|
||||||
when: not site_folder.stat.exists
|
when: not site_folder.stat.exists
|
||||||
|
become: yes
|
||||||
|
become_user: frappe
|
||||||
|
|
||||||
- name: install erpnext to default site
|
- name: install erpnext to default site
|
||||||
command: bench --site site1.local install-app erpnext
|
command: bench --site site1.local install-app erpnext
|
||||||
|
Loading…
Reference in New Issue
Block a user