slitaz-forge rev 281

Add chkfilelist
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 14 15:54:07 2012 +0200 (2012-04-14)
parents e1f7dc7926ee
children 1b0dfad7391f
files mirror/files/usr/bin/chkfilelist
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mirror/files/usr/bin/chkfilelist	Sat Apr 14 15:54:07 2012 +0200
     1.3 @@ -0,0 +1,9 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +find /var/www/slitaz/mirror/ -type d | while read dir; do 
     1.7 +    [ "$(ls -altr $dir | sed '$!d; s/.*\(....\)$/\1/')" == "list" ] && continue
     1.8 +    echo -n "" > $dir/.folderlist
     1.9 +    chown www.www $dir/.folderlist
    1.10 +    echo -n "" > $dir/.filelist
    1.11 +    chown www.www $dir/.filelist
    1.12 +done