mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-07 17:21:20 +00:00
php: use data_dir for configuration scan_dir
This commit is contained in:
parent
8c0745137c
commit
de9034d5a6
8
php.json
8
php.json
@ -29,9 +29,15 @@
|
|||||||
"php-cgi.exe"
|
"php-cgi.exe"
|
||||||
],
|
],
|
||||||
"env_set": {
|
"env_set": {
|
||||||
"PHP_INI_SCAN_DIR": "$dir\\..\\conf"
|
"PHP_INI_SCAN_DIR": "$data_dir\\conf"
|
||||||
},
|
},
|
||||||
"post_install": "
|
"post_install": "
|
||||||
|
#Copy ini scan dir from old location before persistant update
|
||||||
|
if ((Test-Path \"$dir\\..\\conf\") -and !(Test-Path \"$data_dir\\conf\")) {
|
||||||
|
Write-Host 'We are moving your php configuration to scoop/data/php/conf'
|
||||||
|
mv \"$dir\\..\\conf\" \"$data_dir\\conf\"
|
||||||
|
}
|
||||||
|
|
||||||
#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