mirror of
https://github.com/frappe/bench.git
synced 2024-09-24 13:09:01 +00:00
1262f25704
- in travis tests added check for the node_modules folder not found, since it was moved to frappe from v11 onwards - added --without-erpnext flag to install only frappe - identified but not yet fixed localctl failure on scaleway cloud (instant fix: apt install keyboard-configuration kbd console-data) - fixed owner and permissions for bench.log in logs - fixed mariadb set root password issue - added libselinux-python to centos for localctl issues
28 lines
914 B
YAML
28 lines
914 B
YAML
---
|
|
- name: Check if ERPNext App exists
|
|
stat: path="{{ bench_path }}/apps/erpnext"
|
|
register: app
|
|
|
|
- name: Get the ERPNext app
|
|
command: bench get-app erpnext {{ erpnext_repo_url }} --branch {{ erpnext_branch }}
|
|
args:
|
|
creates: "{{ bench_path }}/apps/erpnext"
|
|
chdir: "{{ bench_path }}"
|
|
when: not app.stat.exists and not without_erpnext
|
|
|
|
- name: Check whether the site already exists
|
|
stat: path="{{ bench_path }}/sites/{{ site }}"
|
|
register: site_folder
|
|
|
|
- name: Create a new site
|
|
command: "bench new-site {{ site }} --admin-password '{{ admin_password }}' --mariadb-root-password '{{ mysql_root_password }}'"
|
|
args:
|
|
chdir: "{{ bench_path }}"
|
|
when: not site_folder.stat.exists
|
|
|
|
- name: Install ERPNext to default site
|
|
command: "bench --site {{ site }} install-app erpnext"
|
|
args:
|
|
chdir: "{{ bench_path }}"
|
|
when: not without_erpnext
|
|
... |