--- /dev/null
+#!/bin/sh
+
+set -e
+
+cachedir="/var/cache/www"
+user="www-data"
+
+if [ "x$1" = "xconfigure" ]; then
+ if ! [ -d "$cachedir" ]; then
+ (mkdir "$cachedir" && chown "$user" "$cachedir") || exit 0;
+ fi;
+fi;
+
+
+#DEBHELPER#
unless ($doc_pattern) {
$doc_pattern = '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|mp4|ogg|pdf|rtf|wav|dlt|txt|html?|csv|eps)$'
}
- my $img_pattern = $r->dir_config('GalleryImgFile') unless ($img_pattern) {
+ my $img_pattern = $r->dir_config('GalleryImgFile');
+ unless ($img_pattern) {
$img_pattern = '\.(jpe?g|png|tiff?|ppm)$'
}
as normal files. All other filetypes will still be served by Apache::Gallery
but are not visible in the index.
-The default is '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|mp4|ogg|pdf|rtf|wav|dlt|txt|html?|csv|eps)$'
+The default is
+
+ '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|mp4
+ |ogg|pdf|rtf|wav|dlt|txt|html?|csv|eps)$'
=item B<GalleryTTFDir>