mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-06 08:41:20 +00:00
More suggested persist changes for php and nginx
This commit is contained in:
parent
057d7e7e87
commit
c5985c1057
@ -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.]+)"
|
||||
|
||||
16
php-nts.json
16
php-nts.json
@ -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/",
|
||||
|
||||
13
php.json
13
php.json
@ -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/",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user