cookutils rev 976
modules/pkgdb: ownership isn't transferred, set permissions; lighttpd/index.cgi: color shell documentation files (see compton).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Oct 06 01:08:09 2017 +0300 (2017-10-06) |
parents | 5d2e6e93dbad |
children | beb277de87f5 |
files | lighttpd/index.cgi modules/pkgdb |
line diff
1.1 --- a/lighttpd/index.cgi Wed Oct 04 20:59:50 2017 +0300 1.2 +++ b/lighttpd/index.cgi Fri Oct 06 01:08:09 2017 +0300 1.3 @@ -1430,7 +1430,14 @@ 1.4 *.sgml|*.devhelp2) class='xml';; 1.5 *.py) class='python';; # pycurl package 1.6 *.css) class='css';; 1.7 - *) class='asciidoc';; 1.8 + *.sh) class='bash';; 1.9 + *) 1.10 + first=$(head -n1 "$tmp") 1.11 + if [ "${first:0:1}" == '#' ]; then 1.12 + class='bash' # first line begins with '#' 1.13 + else 1.14 + class='asciidoc' 1.15 + fi;; 1.16 esac 1.17 case "$arg" in 1.18 *.htm*)
2.1 --- a/modules/pkgdb Wed Oct 04 20:59:50 2017 +0300 2.2 +++ b/modules/pkgdb Fri Oct 06 01:08:09 2017 +0300 2.3 @@ -63,7 +63,7 @@ 2.4 2.5 # Web interface database files should exist on the mirror1 2.6 >.folderlist; >.filelist 2.7 -chown www:www .folderlist .filelist 2.8 +chmod 666 .folderlist .filelist 2.9 2.10 _n 'Creating file "%s"' 'packages.list' | dblog 2.11 find . -name '*.tazpkg' | sed 's|^./||; s|.tazpkg$||' > $PKGS/packages.list