summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-04-26 15:37:28 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-04-26 15:37:28 -0400
commit747711ac495fd67e7b31d4361c9ed99d6e6a9717 (patch)
tree363a27b66e680c5e9b6856c5610e507bfd5c7495
parent1579a45e7f350befe92095131d6fadb73d4605cf (diff)
config-mgmt-nginx: mime.types: Actually, all of these extensions are now default
-rw-r--r--config-mgmt-nginx.PKGBUILD25
1 files changed, 1 insertions, 24 deletions
diff --git a/config-mgmt-nginx.PKGBUILD b/config-mgmt-nginx.PKGBUILD
index 6c92d3f..e3090ac 100644
--- a/config-mgmt-nginx.PKGBUILD
+++ b/config-mgmt-nginx.PKGBUILD
@@ -1,5 +1,5 @@
. ${BUILDFILE%/*}/common.sh
-pkgver=20180426
+pkgver=20180426.1
package() {
preamble
@@ -22,29 +22,6 @@ ln -sfT fastcgi.conf.holoscript usr/share/holo/files/10-"$pkgname"/etc/nginx/fas
ln -sfT fastcgi.conf.holoscript usr/share/holo/files/10-"$pkgname"/etc/nginx/scgi_params.holoscript
ln -sfT fastcgi.conf.holoscript usr/share/holo/files/10-"$pkgname"/etc/nginx/uwsgi_params.holoscript
-# `mime.types` has had xz, gzip, bzip2, tar, PGP (`.sig`), and
-# bittorrent types added to it. This list was based on the unmatched
-# file extensions that `find` turned up on `repo.parabola.nu`.
-add-file -m755 usr/share/holo/files/10-"$pkgname"/etc/nginx/mime.types.holoscript <<'EOF'
-#!/bin/sh
-{
- echo '# -*- Mode: nginx; nginx-indent-level: 4; indent-tabs-mode: nil -*-'
- echo
- sed '
- /types {/ {
- a\ application/x-xz xz;
- a\ application/x-gzip gz;
- a\ application/x-bzip2 bz2;
- a\ application/x-tar tar;
- a\ application/octet-stream sig;
- a\ application/x-bittorrent torrent;
- a\
-
- } # the previous blank line is important
- '
-} | awk '/^$/{ s=1 } /./&&!x[$0]++{ if(s){print ""} print; s=0 }'
-EOF
-
add-file etc/nginx/sites/alias-parabolagnulinux_org.conf <<EOF
# -*- Mode: nginx; nginx-indent-level: 8; indent-tabs-mode: t -*-
# Redirect everything from *.parabolagnulinux.org to *.parabola.nu