1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00
Amitay Isaacs ff0d45c403 ctdb-tests: Fix name of the variable representing init script
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>

Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Mon Jan 16 15:46:42 CET 2017 on sn-devel-144
2017-01-16 15:46:42 +01:00

21 lines
371 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "init script"
script="$CTDB_SCRIPTS_INIT_SCRIPT"
if [ -z "$script" ] ; then
script="/etc/init.d/ctdb"
if [ ! -r "$script" ] ; then
script="/usr/local/etc/init.d/ctdb"
fi
if [ ! -r "$script" ] ; then
echo "WARNING: Unable to find ctdb init script, skipping test"
exit 0
fi
fi
shellcheck_test "$script"