ctdb-tests: Fix name of the variable representing init script
[vlendec/samba-autobuild/.git] / ctdb / tests / scripts / script_install_paths.sh
1 # Hey Emacs, this is a -*- shell-script -*- !!!  :-)
2
3 # $ctdb_dir is set in common.sh
4 if [  -n "$ctdb_dir" ] ; then
5         # Running in-tree
6         CTDB_SCRIPTS_BASE="${ctdb_dir}/config"
7         CTDB_SCRIPTS_INIT_SCRIPT="${ctdb_dir}/config/ctdb.init"
8         CTDB_SCRIPTS_SBIN_DIR="${ctdb_dir}/config"
9         CTDB_SCRIPTS_TOOLS_BIN_DIR="${ctdb_dir}/tools"
10         CTDB_SCRIPTS_TOOLS_HELPER_DIR="${ctdb_dir}/tools"
11 else
12         # Installed
13         CTDB_SCRIPTS_BASE="/usr/local/etc/ctdb"
14         CTDB_SCRIPTS_INIT_SCRIPT="" # No ideas here... this is a packaging choice
15         CTDB_SCRIPTS_SBIN_DIR="/usr/local/sbin"
16         CTDB_SCRIPTS_TOOLS_BIN_DIR="/usr/local/bin"
17         CTDB_SCRIPTS_TOOLS_HELPER_DIR="/usr/local/libexec/ctdb"
18 fi
19
20 export CTDB_SCRIPTS_BASE CTDB_SCRIPTS_BIN_DIR CTDB_SCRIPTS_INIT_SCRIPT \
21         CTDB_SCRIPTS_SBIN_DIR CTDB_SCRIPTS_TOOLS_HELPER_DIR