summaryrefslogtreecommitdiff
path: root/support-files/mysql.server.sh
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-04-14 17:22:18 -0700
committerunknown <jimw@mysql.com>2005-04-14 17:22:18 -0700
commit65e4b8ff3b4838814888acdb61d4acdc49812546 (patch)
tree0a9cd43925d9f419333889f7b807904cf3f5c9a8 /support-files/mysql.server.sh
parenta40ecb481848ee7536a07506e68c2856ebac56ab (diff)
downloadmariadb-git-65e4b8ff3b4838814888acdb61d4acdc49812546.tar.gz
Fix mysql.server.sh to use shell functions as replacement
for LSB init functions when they aren't available. (Bug #9852) support-files/mysql.server.sh: Use shell function instead of less portable alias command to create replacements for LSB functions, and also use argument in our replacements.
Diffstat (limited to 'support-files/mysql.server.sh')
-rw-r--r--support-files/mysql.server.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh
index 376d9051b10..f9015824e6b 100644
--- a/support-files/mysql.server.sh
+++ b/support-files/mysql.server.sh
@@ -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