persist php conf: migrate old configuration to new persist directory on

post_install
This commit is contained in:
Rémy 2017-03-26 14:23:27 +02:00
parent 4807b20bcb
commit 423fd3cb88

View File

@ -32,6 +32,12 @@
"PHP_INI_SCAN_DIR": "$persist_dir\\conf"
},
"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
cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"