s4

changeset 73:a8b4eb19a2fb

Remove cachedir when image updated
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 31 Jul 2015 23:35:38 +0900
parents 3dc3ddd2d3e5
children ab37fa69e064
files s4-funcs.sh
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Fri Jul 31 23:22:59 2015 +0900
     1.2 +++ b/s4-funcs.sh	Fri Jul 31 23:35:38 2015 +0900
     1.3 @@ -1877,6 +1877,8 @@
     1.4  		   ct=`file --mime-type $file|cut -d' ' -f2`
     1.5  		   type=\"file:$ct\"
     1.6  		   newsql="update $tb2 set val='$bn', type=$type, bin=$bin"
     1.7 +		   cachedir=`getcachedir "$tb/$rowid"`
     1.8 +		   rm -r $cachedir
     1.9  		   ;;
    1.10  		 *)
    1.11  		   newsql="update $tb2 set val=(select val from par where var \