Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pâquerette
Infrastructure
Ansible Pâquerette
Commits
ddea06c7
Commit
ddea06c7
authored
Sep 20, 2022
by
Pâquerette Instance
Browse files
[fix] Adaptation pour php > 5
parent
e7ea2a84
Changes
2
Hide whitespace changes
Inline
Side-by-side
roles/adm_instance/scripts/install_composer.sh
View file @
ddea06c7
...
...
@@ -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
roles/adm_instance/tasks/postinstall.yml
View file @
ddea06c7
...
...
@@ -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/php
5.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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment