summaryrefslogtreecommitdiff
path: root/packaging/rpm-sles/mysql.init
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/rpm-sles/mysql.init')
-rw-r--r--packaging/rpm-sles/mysql.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/rpm-sles/mysql.init b/packaging/rpm-sles/mysql.init
index 25762d9bee2..62f2a62e1b9 100644
--- a/packaging/rpm-sles/mysql.init
+++ b/packaging/rpm-sles/mysql.init
@@ -57,7 +57,7 @@ install_db () {
logfile=$(get_option mysqld_safe log-error "/var/log/mysql/mysqld.log")
# Restore log, dir, perms and SELinux contexts
- if [ ! -d "$datadir" -a ! -h "$datadir" -a "x$(basedir "$datadir")" = "x/var/lib" ]; then
+ if [ ! -d "$datadir" -a ! -h "$datadir" -a "x$(dirname "$datadir")" = "x/var/lib" ]; then
install -d -m 0755 -omysql -gmysql "$datadir" || return 1
fi