mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb: set the path to 'ctdb' in 'functions' in CTDB
Allow this to be overridden from the caller. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
6ef0a64162
commit
1cc5f8f616
@ -10,6 +10,8 @@ fi
|
||||
CTDB_VARDIR="/usr/local/var/lib/ctdb"
|
||||
ctdb_rundir="/usr/local/var/run/ctdb"
|
||||
|
||||
CTDB="${CTDB:-/usr/local/bin/ctdb}"
|
||||
|
||||
# Only (and always) override these variables in test code
|
||||
|
||||
if [ -z "$CTDB_SCRIPT_VARDIR" ] ; then
|
||||
|
@ -515,9 +515,10 @@ def build(bld):
|
||||
sed_expr4 = 's|/usr/local/var/run/ctdb|%s|g' % (bld.env.CTDB_RUNDIR)
|
||||
sed_expr5 = 's|/usr/local/sbin|%s|g' % (bld.env.SBINDIR)
|
||||
sed_expr6 = 's|/usr/local/libexec/ctdb|%s|g' % (bld.env.CTDB_HELPER_BINDIR)
|
||||
sed_cmdline = '-e "%s" -e "%s" -e "%s" -e "%s" -e "%s" -e "%s"' % \
|
||||
sed_expr7 = 's|/usr/local/bin|%s|g' % (bld.env.BINDIR)
|
||||
sed_cmdline = '-e "%s" -e "%s" -e "%s" -e "%s" -e "%s" -e "%s" -e "%s"' % \
|
||||
(sed_expr1, sed_expr2, sed_expr3, sed_expr4, sed_expr5,
|
||||
sed_expr6)
|
||||
sed_expr6, sed_expr7)
|
||||
|
||||
for f in manpages:
|
||||
x = '%s.xml' % (f)
|
||||
|
Loading…
Reference in New Issue
Block a user