mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
Fix mysql.server.sh to use shell functions as replacement
for LSB init functions when they aren't available. (Bug #9852)
This commit is contained in:
parent
b698b8620e
commit
5e581186a4
1 changed files with 8 additions and 2 deletions
|
@ -61,8 +61,14 @@ lsb_functions="/lib/lsb/init-functions"
|
||||||
if test -f $lsb_functions ; then
|
if test -f $lsb_functions ; then
|
||||||
source $lsb_functions
|
source $lsb_functions
|
||||||
else
|
else
|
||||||
alias log_success_msg="echo \ SUCCESS! "
|
log_success_msg()
|
||||||
alias log_failure_msg="echo \ ERROR! "
|
{
|
||||||
|
echo " SUCCESS! $@"
|
||||||
|
}
|
||||||
|
log_failure_msg()
|
||||||
|
{
|
||||||
|
echo " ERROR! $@"
|
||||||
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$basedir/bin
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$basedir/bin
|
||||||
|
|
Loading…
Reference in a new issue