wok-6.x diff mysql/receipt @ rev 1191
Add clean_wok rules in db.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Tue Aug 05 00:37:08 2008 +0200 (2008-08-05) |
parents | 42f40e9e6a2f |
children | 2311495e3c1a |
line diff
1.1 --- a/mysql/receipt Sat Jul 26 13:40:35 2008 +0000 1.2 +++ b/mysql/receipt Tue Aug 05 00:37:08 2008 +0200 1.3 @@ -49,6 +49,10 @@ 1.4 # Pre and post install commands for Tazpkg. 1.5 post_install() 1.6 { 1.7 + ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ 1.8 + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.9 +etc/my.cnf 1.10 +EOT 1.11 # adduser mysql if needed 1.12 if ! grep -q mysql $1/etc/passwd; then 1.13 echo -n "Adding user mysql..." 1.14 @@ -78,3 +82,8 @@ 1.15 deluser mysql 1.16 delgroup mysql 1.17 } 1.18 + 1.19 +repack_cleanup() 1.20 +{ 1.21 + zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) 1.22 +}