diff --git a/mariadb.changes b/mariadb.changes index 9f67145..b241c20 100644 --- a/mariadb.changes +++ b/mariadb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Nov 09 18:53:00 UTC 2014 - Led + +- fix bashism in posttrans script + ------------------------------------------------------------------- Thu Oct 9 16:58:53 UTC 2014 - michal.hrusecky@opensuse.org diff --git a/mariadb.spec b/mariadb.spec index 572d7ec..b012448 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -479,8 +479,8 @@ end if [ -d /var/lib/mysql ]; then touch /var/lib/mysql/.run-mysql_upgrade fi -for i in /var/lib/mysql/{.protected,.tmp}; do - ( [ -d "$i" ] && rmdir "$i" ) || : +for in in protected tmp; do + rmdir /var/lib/mysql/.$i 2>/dev/null || : done # start mysql again if it should run if [ "`ls /etc/rc.d/rc*.d/S*mysql 2> /dev/null`" ] || [ -d %{_rundir}/mysql/restart ]; then