mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
php: enable opcache extension in php.ini if selected
Add a line to load the opcache extension in php.ini, at the bottom of the "dynamic extensions" section. Signed-off-by: Floris Bos <bos@je-eigen-domein.nl> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
2bba2edad8
commit
ccbeeb8a8c
@ -301,6 +301,9 @@ define PHP_INSTALL_FIXUP
|
|||||||
$(TARGET_DIR)/etc/php.ini
|
$(TARGET_DIR)/etc/php.ini
|
||||||
$(SED) 's%;date.timezone =.*%date.timezone = $(PHP_LOCALTIME)%' \
|
$(SED) 's%;date.timezone =.*%date.timezone = $(PHP_LOCALTIME)%' \
|
||||||
$(TARGET_DIR)/etc/php.ini
|
$(TARGET_DIR)/etc/php.ini
|
||||||
|
$(if $(BR2_PACKAGE_PHP_EXT_OPCACHE),
|
||||||
|
$(SED) '/;extension=php_xsl.dll/azend_extension=opcache.so' \
|
||||||
|
$(TARGET_DIR)/etc/php.ini)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
PHP_POST_INSTALL_TARGET_HOOKS += PHP_INSTALL_FIXUP
|
PHP_POST_INSTALL_TARGET_HOOKS += PHP_INSTALL_FIXUP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user