SHA256
1
0
forked from pool/mariadb

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
This commit is contained in:
Michal Hrusecky (old before rename to _miska_) 2014-11-14 19:24:46 +00:00 committed by Git OBS Bridge
parent 0604d57c91
commit 28d04d0271
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Nov 09 18:53:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashism in posttrans script
-------------------------------------------------------------------
Thu Oct 9 16:58:53 UTC 2014 - michal.hrusecky@opensuse.org

View File

@ -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