Commit 94955928 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-18059 `support-files/mysql.server.sh stop` must run as root

don't run `su - mysql` is $USER is already mysql
parent a8da66f8
......@@ -187,7 +187,11 @@ fi
user='@MYSQLD_USER@'
su_kill() {
su - $user -s /bin/sh -c "kill $*" >/dev/null 2>&1
if test "$USER" = "$user"; then
kill $* >/dev/null 2>&1
else
su - $user -s /bin/sh -c "kill $*" >/dev/null 2>&1
fi
}
#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment