2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-24 04:59:01 +00:00

Merge pull request #849 from saurabh6790/libssl-fix

fix: setup libssl dependancy by checking distribution
This commit is contained in:
Saurabh 2019-10-21 15:52:27 +05:30 committed by GitHub
commit 9ff9a0a622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 < 18.04
apt: pkg={{ item }} state=present force=yes
with_items:
- libssl-dev
when: ansible_distribution_version | version_compare('18.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')
...