2 # $Id: pkwk_chmod.sh,v 1.10 2011/01/24 15:12:51 henoheno Exp $
3 # Chmod script for PukiWiki DATA_HOME
4 # ==========================================================
5 Copyright='(C) 2002-2004 minix-up project, All Rights Reserved'
6 Homepage='http://cvsknit.sourceforge.net/'
7 License='(also revised)BSD Licnese, NO WARRANTY'
13 test -d "$dir" || return 1
26 ls -d 'cache' 'counter' 'attach' wiki.[a-z][a-z] 2>/dev/null | while read dir; do
36 # Unfortunately attach/attached-files have no suffix
37 # that should be .bin or someting
38 find "$dir" -type f -name '*.log'
40 backup ) find "$dir" -type f \( -name '*.txt' -or -name '*.gz' \) ;;
41 cache ) find "$dir" -type f \( -name '*.dat' -or -name '*.re[fl]' -or -name '*.lock' \) ;;
42 * ) find "$dir" -type f -name '*.txt' ;;
49 if ! check_dir ` list_dir ` ; then
50 echo 'ERROR: Seems not pukiwiki DATA_HOME'
55 list_dir | while read dir; do
57 list_files "$dir" | while read file; do
64 chmod a-x INSTALL.txt image/b_pukiwiki.official.png
66 chmod o+r .ht* */.htaccess *.php */*.php image/*.png image/face/*.png */index.html
67 chmod o+rx lib skin plugin image image/face
70 #chmod o+r *.txt doc/*.txt