mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-05 00:01:20 +00:00
persist php conf: migrate old configuration to new persist directory on
post_install
This commit is contained in:
parent
4807b20bcb
commit
423fd3cb88
6
php.json
6
php.json
@ -32,6 +32,12 @@
|
|||||||
"PHP_INI_SCAN_DIR": "$persist_dir\\conf"
|
"PHP_INI_SCAN_DIR": "$persist_dir\\conf"
|
||||||
},
|
},
|
||||||
"post_install": "
|
"post_install": "
|
||||||
|
#Copy ini scan dir from old location before persistant update
|
||||||
|
if ((Test-Path \"$dir\\..\\conf\") -and !(Test-Path \"$persist_dir\\conf\")) {
|
||||||
|
Write-Host -ForegroundColor Cyan 'We are moving your php configuration to scoop/persist/php/conf'
|
||||||
|
Move-Item \"$dir\\..\\conf\" \"$persist_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