Génériser gestion versions de PHP (multi-php) #75
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Il faudrait voir si on peut rendre plus générique les 'if [ "$php_version" = XX ]; then' ... utilisés dans web-add.sh (et ses frères et soeurs).
Ca éviterait de devoir le mettre-à-jour lors de l'ajout d'un nouveau conteneur.
Paths were standardized for new php version from 7.0 onward in Debian so it is definitely possible :
In the case of
e76ea90d89/scripts/web-add.sh (L428-L442)
it can be massively simplified as :And in the case of
e76ea90d89/scripts/web-add.sh (L601-L622)
it can be massively simplified as :And for
e76ea90d89/scripts/web-add.sh (L772-L793)
it is exactly the same thing as the previous one.This would remove the need to update evoadmin-web to support any new version of PHP (well, at least until 10.0) which would massively reduce the overhead that currently exists when adding support of new PHP version in things using evoadmin-web.
The main problem is therefor to find how to get the dotted version number of PHP from a dot-less version number.
I started to do it in ansible-roles, 👍 to move forward in Evoadmin-web too.