diff --git a/scripts/_common.sh b/scripts/_common.sh index 96516fa..b5da2d8 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -1,5 +1,10 @@ #!/bin/bash +readonly YNH_DEFAULT_PHP_VERSION=7.0 +# Declare the actual php version to use. +# A packager willing to use another version of php can override the variable into its _common.sh. +YNH_PHP_VERSION=${YNH_PHP_VERSION:-$YNH_DEFAULT_PHP_VERSION} + pkg_dependencies="php7.2-cli php7.2-json php7.2-opcache php7.2-mysql php7.2-mbstring php7.2-zip php7.2-bcmath php7.2-intl php7.2-xml php7.2-curl php7.2-gd php7.2-gmp"