summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/shellcheck/init_script.sh
blob: 1e1d54c08af08d9e86dd2fe5d103c5990a9c8eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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
		ctdb_test_skip "Unable to find ctdb init script"
	fi
fi

shellcheck_test "$script"