Commit ddea06c7 authored by Pâquerette Instance's avatar Pâquerette Instance
Browse files

[fix] Adaptation pour php > 5

parent e7ea2a84
......@@ -11,8 +11,7 @@ then
exit 1
fi
# La dernière version de composer qui supporte PHP 5.6 est 2.2.12
php composer-setup.php --quiet --version=2.2.12
php composer-setup.php
RESULT=$?
rm composer-setup.php
exit $RESULT
......@@ -7,9 +7,18 @@
tags:
- postinstall
- name: "installs php requirements using 5.6 composer"
- name: "installs php requirements using composer"
become_user: "{{ run_user }}"
command: /usr/bin/php5.6 /usr/local/bin/composer -n install
command: "/usr/bin/php{{ php_version }} /usr/local/bin/composer -n update"
args:
chdir: "{{ app_instance_root }}/"
tags:
- never
- update_composer
- name: "installs php requirements using composer"
become_user: "{{ run_user }}"
command: "/usr/bin/php{{ php_version }} /usr/local/bin/composer -n install"
args:
chdir: "{{ app_instance_root }}/"
tags:
......@@ -42,7 +51,7 @@
day: "14"
hour: "4"
minute: "30"
job: "/usr/bin/php5.6 {{ app_instance_root }}/bo_adm1/cron/updateMembres_Sendinblue.php"
job: "/usr/bin/php{{ php_version }} {{ app_instance_root }}/bo_adm1/cron/updateMembres_Sendinblue.php"
tags:
- postinstall
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment