2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

fix: setup libssl dependancy by checking distribution

This commit is contained in:
Saurabh 2019-10-21 15:36:02 +05:30
parent 5c5993bf01
commit 7af5e6732d
4 changed files with 19 additions and 2 deletions

View File

@ -14,7 +14,7 @@ def install_bench(args):
success = run_os_command({
'apt-get': [
'sudo apt-get update',
'sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev libssl-dev'
'sudo apt-get install -y git build-essential python3-setuptools python3-dev libffi-dev'
],
'yum': [
'sudo yum groupinstall -y "Development tools"',

View File

@ -21,4 +21,9 @@
- tk8.5-dev
when: ansible_distribution_version | version_compare('8', 'ge')
- name: install pdf prerequisites debian
apt: pkg={{ item }} state=present force=yes
with_items:
- libssl-dev
...

View File

@ -12,7 +12,6 @@
- libcrypto++-dev
- libfreetype6-dev
- liblcms2-dev
- libssl-dev
- libwebp-dev
- libxext6
- libxrender1

View File

@ -18,4 +18,17 @@
- tk8.6-dev
when: ansible_distribution_version | version_compare('14.04', 'ge')
- name: install pdf prerequisites for Ubuntu < 16.04
apt: pkg={{ item }} state=present force=yes
with_items:
- libssl-dev
when: ansible_distribution_version | version_compare('16.04', 'lt')
- name: install pdf prerequisites for Ubuntu >= 18.04
apt: pkg={{ item }} state=present force=yes
with_items:
- libssl1.0-dev
when: ansible_distribution_version | version_compare('18.04', 'ge')
...