2
# Copyright (C) 2009 Raphael Bossek <bossekr@debian.org>
7
trap "rm $tmpf" EXIT QUIT
8
dpkg-statoverride --list "*/bugzilla3*"| sed -e 's,^\([^[:space:]]\+\)[[:space:]]\([^[:space:]]\+\)[[:space:]]\([^[:space:]]\+\)[[:space:]]\(.*\),chown \1:\2 "\4"\nchmod \3 "\4",g' >"$tmpf"
13
# Please read the post-checksetup.d/10setdefaultdpkgstatoverride about how
14
# to speed up the processing of "$BUGZILLA_VARDIR"/templates
15
for d in `find "$BUGZILLA_VARDIR"/template -mindepth 1 -type d`; do
16
chmod --reference="$BUGZILLA_VARDIR"/template "$d"
17
chown --reference="$BUGZILLA_VARDIR"/template "$d"
19
for f in `find "$BUGZILLA_VARDIR"/template -mindepth 1 -type f`; do
20
test "$f" = "$BUGZILLA_VARDIR"/template/en/default/index.html.tmpl && continue
21
chmod --reference="$BUGZILLA_VARDIR"/template/en/default/index.html.tmpl "$f"
22
chown --reference="$BUGZILLA_VARDIR"/template/en/default/index.html.tmpl "$f"
24
# Access rights for the $BUGZILLA_DATADIR/template content are the same as
25
# for the source files.
26
for d in `find $BUGZILLA_DATADIR/template -mindepth 1 -type d`; do
27
chmod --reference="$BUGZILLA_VARDIR"/template "$d"
28
chown --reference="$BUGZILLA_VARDIR"/template "$d"
30
for f in `find $BUGZILLA_DATADIR/template -mindepth 1 -type f`; do
31
chmod --reference="$BUGZILLA_VARDIR"/template/en/default/index.html.tmpl "$f"
32
chown --reference="$BUGZILLA_VARDIR"/template/en/default/index.html.tmpl "$f"