More suggested persist changes for php and nginx

This commit is contained in:
Richard Kuhnt 2017-03-30 14:43:42 +02:00
parent 057d7e7e87
commit c5985c1057
3 changed files with 20 additions and 12 deletions

View File

@ -6,7 +6,8 @@
"hash": "53ca945ffd3ceaa40c2c60e01218a3b7ac64e61d3907484461794ee13757cce9",
"extract_dir": "nginx-1.11.12",
"bin": "nginx.exe",
"persist": ["conf", "html", "logs"],
"persist": ["conf", "html", "logs", "temp"],
"notes": "To use the correct configuration run 'nginx -p \"$env:SCOOP\\apps\\nginx\\current\"' or 'nginx -p \"%SCOOP%\\apps\\nginx\\current\"'",
"checkver": {
"url": "https://nginx.org/en/CHANGES",
"re": "Changes with nginx ([\\d.]+)"

View File

@ -28,15 +28,19 @@
"php.exe",
"php-cgi.exe"
],
"persist": [
"conf",
[
"php.ini-production",
"conf\\php.ini"
]
],
"env_set": {
"PHP_INI_SCAN_DIR": "$dir\\..\\conf"
"PHP_INI_SCAN_DIR": "$dir\\conf"
},
"post_install": "
#Copy PHP configuration file to expected location
cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"
#Enable extensions to be found in installation-relative folder (the default is to search C:/php)
(gc \"$dir\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\php.ini\"
# Enable extensions to be found in installation-relative folder (the default is to search C:/php)
(gc \"$dir\\conf\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\conf\\php.ini\"
",
"checkver": {
"url": "http://windows.php.net/download/",

View File

@ -28,7 +28,13 @@
"php.exe",
"php-cgi.exe"
],
"persist": "conf",
"persist": [
"conf",
[
"php.ini-production",
"conf\\php.ini"
]
],
"env_set": {
"PHP_INI_SCAN_DIR": "$dir\\conf"
},
@ -39,11 +45,8 @@ if ((Test-Path \"$dir\\..\\conf\") -and !(Test-Path \"$dir\\conf\")) {
Move-Item \"$dir\\..\\conf\" \"$dir\\conf\"
}
# Copy PHP configuration file to expected location
cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"
# Enable extensions to be found in installation-relative folder (the default is to search C:/php)
(gc \"$dir\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\php.ini\"
(gc \"$dir\\conf\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\conf\\php.ini\"
",
"checkver": {
"url": "http://windows.php.net/download/",