Skip to content
Snippets Groups Projects
Commit 1ae91ffc authored by jurgenhaas's avatar jurgenhaas
Browse files

Make sure we get the proper PHP CLI alternative inside Jails

parent 39544847
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,12 @@ ...@@ -28,6 +28,12 @@
value: '/usr/sbin/jk_chrootsh' value: '/usr/sbin/jk_chrootsh'
user: '{{ drupal.jail.name }}' user: '{{ drupal.jail.name }}'
- name: "Ensure proper symlink for PHP executable in Jail"
file:
src: '/usr/bin/php{{ php_version }}'
dest: '{{ jailroot }}/{{ drupal.jail.name }}/etc/alternatives/php'
state: 'link'
tags: tags:
- 'UpdateJails' - 'UpdateJails'
- 'shells' - 'shells'
...@@ -169,7 +169,7 @@ comment = the php interpreter and libraries ...@@ -169,7 +169,7 @@ comment = the php interpreter and libraries
executables = /usr/local/bin/php executables = /usr/local/bin/php
directories = /usr/lib/php5, /usr/share/php, /usr/share/php5, /etc/php5, /usr/share/zoneinfo, /usr/local/lib/php/extensions directories = /usr/lib/php5, /usr/share/php, /usr/share/php5, /etc/php5, /usr/share/zoneinfo, /usr/local/lib/php/extensions
{% elif php_version_main|default('7') == '7' %} {% elif php_version_main|default('7') == '7' %}
executables = /usr/bin/php executables = /usr/bin/php*
directories = /usr/lib/php, /usr/share/php, /usr/share/php{{php_version|default("7.0")}}-*, /etc/php, /usr/share/zoneinfo, /usr/lib/x86_64-linux-gnu/libxml* directories = /usr/lib/php, /usr/share/php, /usr/share/php{{php_version|default("7.0")}}-*, /etc/php, /usr/share/zoneinfo, /usr/lib/x86_64-linux-gnu/libxml*
{% else %} {% else %}
executables = /usr/bin/php5 executables = /usr/bin/php5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment