wok-next diff mysql/receipt @ rev 1152
mysql,postgresql: backup volatile files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 26 17:57:04 2008 +0000 (2008-07-26) |
parents | 42f40e9e6a2f |
children | 2311495e3c1a |
line diff
1.1 --- a/mysql/receipt Sat Jul 26 13:40:35 2008 +0000 1.2 +++ b/mysql/receipt Sat Jul 26 17:57:04 2008 +0000 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 +}