mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[php] More ugly hack for php helpers shipped by apps that assume php 7.0 by default
This commit is contained in:
parent
2c7b3a1fd1
commit
9dbf626b36
1 changed files with 3 additions and 1 deletions
|
@ -2879,7 +2879,9 @@ LEGACY_PHP_VERSION_REPLACEMENTS = [
|
|||
("/var/run/php5-fpm", "/var/run/php/php7.3-fpm"),
|
||||
("/var/run/php/php7.0-fpm", "/var/run/php/php7.3-fpm"),
|
||||
("php5", "php7.3"),
|
||||
("php7.0", "php7.3")
|
||||
("php7.0", "php7.3"),
|
||||
('phpversion="${phpversion:-7.0}"', 'phpversion="${phpversion:-7.3}"'), # Many helpers like the composer ones use 7.0 by default ...
|
||||
('"$phpversion" == "7.0"', '$(bc <<< "$phpversion >= 7.3") -eq 1') # patch ynh_install_php to refuse installing/removing php <= 7.3
|
||||
]
|
||||
|
||||
def _patch_legacy_php_versions(app_folder):
|
||||
|
|
Loading…
Add table
Reference in a new issue