wok-current rev 19766

mysql, mariadb: fix pre_install status (thanks Aleksej)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 20 09:35:09 2017 +0100 (2017-02-20)
parents 416babe74368
children 49d803122cfe
files mariadb/receipt mysql/receipt
line diff
     1.1 --- a/mariadb/receipt	Mon Feb 20 09:30:03 2017 +0100
     1.2 +++ b/mariadb/receipt	Mon Feb 20 09:35:09 2017 +0100
     1.3 @@ -106,7 +106,8 @@
     1.4  	# Cleanup old files
     1.5  	rm -f "$1/usr/libexec/mysql"*
     1.6  	# Mv config
     1.7 -	[ -f "$1/etc/my.cnf" ] && mv -f "$1/etc/my.cnf" "$1/etc/mysql/my.cnf"
     1.8 +	[ -f "$1/etc/my.cnf" ] &&
     1.9 +	mv -f "$1/etc/my.cnf" "$1/etc/mysql/my.cnf" || true
    1.10  }
    1.11  
    1.12  post_remove()
     2.1 --- a/mysql/receipt	Mon Feb 20 09:30:03 2017 +0100
     2.2 +++ b/mysql/receipt	Mon Feb 20 09:35:09 2017 +0100
     2.3 @@ -133,7 +133,8 @@
     2.4  	# Cleanup old files
     2.5  	rm -f "$1/usr/libexec/mysql"*
     2.6  	# Mv config
     2.7 -	[ -f "$1/etc/my.cnf" ] && mv -f "$1/etc/my.cnf" "$1/etc/mysql/my.cnf"
     2.8 +	[ -f "$1/etc/my.cnf" ] &&
     2.9 +	mv -f "$1/etc/my.cnf" "$1/etc/mysql/my.cnf" || true
    2.10  }
    2.11  
    2.12  post_remove()