From 6c35ac03b9497af1491c8c9fd386faf5e78905f0 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Tue, 28 Mar 2017 18:27:45 +0200 Subject: main/php5: fix seding of nonexistent file /etc/php/php.ini --- main/php5/APKBUILD | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main/php5/APKBUILD b/main/php5/APKBUILD index 10e01917a6..c8a9289fe8 100644 --- a/main/php5/APKBUILD +++ b/main/php5/APKBUILD @@ -335,11 +335,14 @@ doc() { common() { pkgdesc="PHP Common Files" depends="" + cd "$srcdir"/php-$pkgver + install -D -m644 php.ini-production "$subpkgdir"$_confdir/php.ini - sed -i -e "s:^; extension_dir = \"./\":extension_dir = \"$_extdir\":" "$subpkgdir"/etc/php/php.ini - sed -ri 's/;(date.timezone =)/\1 UTC/' "$subpkgdir"$_confdir/php.ini - sed -ri "s~^([;]*cgi\.rfc2616_headers.*)$~\1\n\n\; If this is enabled, the PHP CGI binary can safely be placed outside of the\n; web tree and people will not be able to circumvent .htaccess security.\ncgi\.discard_path = 1~" "$subpkgdir"$_confdir/php.ini + sed -ri -e "s:^; extension_dir = \"./\":extension_dir = \"$_extdir\":" \ + -e 's/;(date.timezone =)/\1 UTC/' \ + -e "s~^([;]*cgi\.rfc2616_headers.*)$~\1\n\n\; If this is enabled, the PHP CGI binary can safely be placed outside of the\n; web tree and people will not be able to circumvent .htaccess security.\ncgi\.discard_path = 1~" \ + "$subpkgdir"$_confdir/php.ini } cgi() { -- cgit v1.2.3