mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
19071ac8ad
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
31 lines
1.0 KiB
Bash
31 lines
1.0 KiB
Bash
# Hey Emacs, this is a -*- shell-script -*- !!! :-)
|
|
|
|
# $ctdb_dir is set in common.sh
|
|
if [ -n "$ctdb_dir" ] ; then
|
|
# Running in-tree
|
|
CTDB_SCRIPTS_BASE="${ctdb_dir}/config"
|
|
CTDB_SCRIPTS_INIT_SCRIPT="${ctdb_dir}/config/ctdb.init"
|
|
CTDB_SCRIPTS_SBIN_DIR="${ctdb_dir}/config"
|
|
CTDB_SCRIPTS_TOOLS_BIN_DIR="${ctdb_dir}/tools"
|
|
CTDB_SCRIPTS_TOOLS_HELPER_DIR="${ctdb_dir}/tools"
|
|
CTDB_SCRIPTS_HELPER_BINDIR="${ctdb_dir}/bin"
|
|
CTDB_SCRIPTS_DATA_DIR="${ctdb_dir}/config"
|
|
else
|
|
# Installed
|
|
CTDB_SCRIPTS_BASE="/usr/local/etc/ctdb"
|
|
CTDB_SCRIPTS_INIT_SCRIPT="" # No ideas here... this is a packaging choice
|
|
CTDB_SCRIPTS_SBIN_DIR="/usr/local/sbin"
|
|
CTDB_SCRIPTS_TOOLS_BIN_DIR="/usr/local/bin"
|
|
CTDB_SCRIPTS_TOOLS_HELPER_DIR="/usr/local/libexec/ctdb"
|
|
CTDB_SCRIPTS_HELPER_BINDIR="/usr/local/libexec/ctdb"
|
|
CTDB_SCRIPTS_DATA_DIR="/usr/local/share/ctdb"
|
|
fi
|
|
|
|
export CTDB_SCRIPTS_BASE \
|
|
CTDB_SCRIPTS_BIN_DIR \
|
|
CTDB_SCRIPTS_INIT_SCRIPT \
|
|
CTDB_SCRIPTS_SBIN_DIR \
|
|
CTDB_SCRIPTS_TOOLS_HELPER_DIR \
|
|
CTDB_SCRIPTS_HELPER_BINDIR \
|
|
CTDB_SCRIPTS_DATA_DIR
|