mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
ff0d45c403
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
21 lines
371 B
Bash
Executable File
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"
|