From 28d04d0271eb51bf3ce733e742ba475554c4ebab7ef6ff665b2261de44ecf289 Mon Sep 17 00:00:00 2001 From: "Michal Hrusecky (old before rename to _miska_)" Date: Fri, 14 Nov 2014 19:24:46 +0000 Subject: [PATCH] Accepting request 260534 from home:Ledest:misc fix bashism in posttrans script OBS-URL: https://build.opensuse.org/request/show/260534 OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=160 --- mariadb.changes | 5 +++++ mariadb.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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