From 67234c2a4af1d180e3427d8a8bbd771df6f7bde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my?= Date: Fri, 31 Mar 2017 01:11:19 +0200 Subject: [PATCH] php-nts use the same migration code as php --- php-nts.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/php-nts.json b/php-nts.json index 296fb373ad..167e132a49 100644 --- a/php-nts.json +++ b/php-nts.json @@ -39,8 +39,14 @@ "PHP_INI_SCAN_DIR": "$dir\\cli;$dir\\cli\\conf.d;" }, "post_install": " +# Copy ini scan dir from old location before persistent update +if ((Test-Path \"$dir\\..\\conf\") -and !(Test-Path \"$dir\\cli\\conf.d\")) { + Write-Host -ForegroundColor Cyan \"We are moving your php configuration to $dir\\cli\\conf.d\" + Move-Item \"$dir\\..\\conf\" \"$dir\\cli\\conf.d\" +} + # Create directory for custom PHP configuration -if(!(Test-Path \"$dir\\cli\\conf.d\")) { +if (!(Test-Path \"$dir\\cli\\conf.d\")) { (New-Item -Type directory \"$dir\\cli\\conf.d\") | Out-Null }