diff options
author | unknown <jani@a193-229-222-105.elisa-laajakaista.fi> | 2005-12-14 02:01:54 +0200 |
---|---|---|
committer | unknown <jani@a193-229-222-105.elisa-laajakaista.fi> | 2005-12-14 02:01:54 +0200 |
commit | 910052c18f7102eff6ac1bf4119144b875f4a7fc (patch) | |
tree | 2b1e005109511c4b95526111f6bb3a821ca37f18 /support-files | |
parent | 4e1d88af8fe7ec0eac3902bb72a067e8d191bf3a (diff) | |
download | mariadb-git-910052c18f7102eff6ac1bf4119144b875f4a7fc.tar.gz |
Datadir variable should not be reset, if it was
set in this script.
Diffstat (limited to 'support-files')
-rw-r--r-- | support-files/mysql.server.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh index 6dbffdc9778..1892e8b4a46 100644 --- a/support-files/mysql.server.sh +++ b/support-files/mysql.server.sh @@ -56,12 +56,18 @@ if test -z "$basedir" then basedir=@prefix@ bindir=@bindir@ - datadir=@localstatedir@ + if test -z "$datadir" + then + datadir=@localstatedir@ + fi sbindir=@sbindir@ libexecdir=@libexecdir@ else bindir="$basedir/bin" - datadir="$basedir/data" + if test -z "$datadir" + then + datadir="$basedir/data" + fi sbindir="$basedir/sbin" libexecdir="$basedir/libexec" fi |