mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
databases/mysql57-server: Fix rc-script ${name}_limits conflict for post-r328331 base
This is port of r461217
This commit is contained in:
parent
7f0c31cc65
commit
733b35d35e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=461218
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME?= mysql
|
||||
PORTVERSION= 5.7.21
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= databases ipv6
|
||||
MASTER_SITES= MYSQL/MySQL-5.7
|
||||
PKGNAMESUFFIX?= 57-server
|
||||
|
@ -47,6 +47,10 @@ fi
|
||||
if [ ! -z "${mysql_optfile}" ]; then
|
||||
mysql_extra="--defaults-extra-file=${mysql_optfile}"
|
||||
fi
|
||||
if [ "${mysql_limits}" = "NO" ]; then
|
||||
mysql_limits=""
|
||||
fi
|
||||
|
||||
|
||||
mysql_user="mysql"
|
||||
mysql_limits_args="-e -U ${mysql_user}"
|
||||
@ -70,7 +74,7 @@ mysql_prestart()
|
||||
if [ ! -d "${mysql_dbdir}/mysql/." ]; then
|
||||
mysql_create_auth_tables || return 1
|
||||
fi
|
||||
if checkyesno mysql_limits; then
|
||||
if [ -z "$mysql_limits" ] || checkyesno mysql_limits; then
|
||||
eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null
|
||||
else
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user