mirror of
https://github.com/frappe/bench.git
synced 2025-01-23 23:18:24 +00:00
feat(easy_install): add support for debian 10
* Easy Installer did not support Debian 10 Buster, so I changed the playbooks to support Debian 10. * Related Issue: #831 * Tested in a newly deployed Debian 10 Buster running on KVM and in a brand new deployed LXC Container (--container) also running fine.
This commit is contained in:
parent
75ffa0325e
commit
72c70b23bf
@ -142,7 +142,7 @@ def install_bench(args):
|
|||||||
shutil.rmtree(tmp_bench_repo)
|
shutil.rmtree(tmp_bench_repo)
|
||||||
|
|
||||||
def check_distribution_compatibility():
|
def check_distribution_compatibility():
|
||||||
supported_dists = {'ubuntu': [14, 15, 16, 18, 19], 'debian': [8, 9],
|
supported_dists = {'ubuntu': [14, 15, 16, 18, 19], 'debian': [8, 9, 10],
|
||||||
'centos': [7], 'macos': [10.9, 10.10, 10.11, 10.12]}
|
'centos': [7], 'macos': [10.9, 10.10, 10.11, 10.12]}
|
||||||
|
|
||||||
dist_name, dist_version = get_distribution_info()
|
dist_name, dist_version = get_distribution_info()
|
||||||
@ -389,7 +389,7 @@ def parse_commandline_args():
|
|||||||
|
|
||||||
# set passwords
|
# set passwords
|
||||||
parser.add_argument('--mysql-root-password', dest='mysql_root_password', help='Set mysql root password')
|
parser.add_argument('--mysql-root-password', dest='mysql_root_password', help='Set mysql root password')
|
||||||
parser.add_argument('--mariadb-version', dest='mariadb_version', default='10.2', help='Specify mariadb version')
|
parser.add_argument('--mariadb-version', dest='mariadb_version', default='10.4', help='Specify mariadb version')
|
||||||
parser.add_argument('--admin-password', dest='admin_password', help='Set admin password')
|
parser.add_argument('--admin-password', dest='admin_password', help='Set admin password')
|
||||||
parser.add_argument('--bench-name', dest='bench_name', help='Create bench with specified name. Default name is frappe-bench')
|
parser.add_argument('--bench-name', dest='bench_name', help='Create bench with specified name. Default name is frappe-bench')
|
||||||
|
|
||||||
|
@ -12,14 +12,33 @@
|
|||||||
- tk8.5-dev
|
- tk8.5-dev
|
||||||
when: ansible_distribution_version | version_compare('8', 'lt')
|
when: ansible_distribution_version | version_compare('8', 'lt')
|
||||||
|
|
||||||
- name: install pillow prerequisites for Debian >= 8
|
- name: install pillow prerequisites for Debian 8
|
||||||
apt: pkg={{ item }} state=present
|
apt: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- libjpeg62-turbo-dev
|
- libjpeg62-turbo-dev
|
||||||
- libtiff5-dev
|
- libtiff5-dev
|
||||||
- tcl8.5-dev
|
- tcl8.5-dev
|
||||||
- tk8.5-dev
|
- tk8.5-dev
|
||||||
when: ansible_distribution_version | version_compare('8', 'ge')
|
when: ansible_distribution_version | version_compare('8', 'eq')
|
||||||
|
|
||||||
|
- name: install pillow prerequisites for Debian 9
|
||||||
|
apt: pkg={{ item }} state=present
|
||||||
|
with_items:
|
||||||
|
- libjpeg62-turbo-dev
|
||||||
|
- libtiff5-dev
|
||||||
|
- tcl8.5-dev
|
||||||
|
- tk8.5-dev
|
||||||
|
when: ansible_distribution_version | version_compare('9', 'eq')
|
||||||
|
|
||||||
|
|
||||||
|
- name: install pillow prerequisites for Debian >= 10
|
||||||
|
apt: pkg={{ item }} state=present
|
||||||
|
with_items:
|
||||||
|
- libjpeg62-turbo-dev
|
||||||
|
- libtiff5-dev
|
||||||
|
- tcl8.6-dev
|
||||||
|
- tk8.6-dev
|
||||||
|
when: ansible_distribution_version | version_compare('10', 'ge')
|
||||||
|
|
||||||
- name: install pdf prerequisites debian
|
- name: install pdf prerequisites debian
|
||||||
apt: pkg={{ item }} state=present force=yes
|
apt: pkg={{ item }} state=present force=yes
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
|
|
||||||
- name: Install nodejs {{ node_version }}
|
- name: Install nodejs {{ node_version }}
|
||||||
apt:
|
apt:
|
||||||
name: nodejs
|
name:
|
||||||
|
- nodejs
|
||||||
|
- npm
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
force: yes
|
force: yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user