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 wrap: on
line diff
--- a/s4-funcs.sh	Fri Jul 31 23:22:59 2015 +0900
+++ b/s4-funcs.sh	Fri Jul 31 23:35:38 2015 +0900
@@ -1877,6 +1877,8 @@
 		   ct=`file --mime-type $file|cut -d' ' -f2`
 		   type=\"file:$ct\"
 		   newsql="update $tb2 set val='$bn', type=$type, bin=$bin"
+		   cachedir=`getcachedir "$tb/$rowid"`
+		   rm -r $cachedir
 		   ;;
 		 *)
 		   newsql="update $tb2 set val=(select val from par where var \

yatex.org