mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +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
|
||||
source $lsb_functions
|
||||
else
|
||||
alias log_success_msg="echo \ SUCCESS! "
|
||||
alias log_failure_msg="echo \ ERROR! "
|
||||
log_success_msg()
|
||||
{
|
||||
echo " SUCCESS! $@"
|
||||
}
|
||||
log_failure_msg()
|
||||
{
|
||||
echo " ERROR! $@"
|
||||
}
|
||||
fi
|
||||
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$basedir/bin
|
||||
|
|
Loading…
Reference in a new issue