mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-05 00:01:20 +00:00
Add the ability to have an additional php.ini file (#913)
When upgrading PHP version, the php.ini file is reset. So, I used PHP_INI_SCAN_DIR $env var to add an additional path to load php config files: /php/conf/. I think this little change can simplify the PHP upgrading process.
This commit is contained in:
parent
31db07ecda
commit
1e1b405b97
3
php.json
3
php.json
@ -28,6 +28,9 @@
|
|||||||
"php.exe",
|
"php.exe",
|
||||||
"php-cgi.exe"
|
"php-cgi.exe"
|
||||||
],
|
],
|
||||||
|
"env_set": {
|
||||||
|
"PHP_INI_SCAN_DIR": "$dir\\..\\conf"
|
||||||
|
},
|
||||||
"post_install": "
|
"post_install": "
|
||||||
#Copy PHP configuration file to expected location
|
#Copy PHP configuration file to expected location
|
||||||
cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"
|
cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user