mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Test suite: CTDB_SAMBA_SKIP_SHARE_CHECK test now uses _loadconfig().
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 651e6703b6dc4d11ba7d6d0b44d3be1f485a0f75)
This commit is contained in:
parent
3a18451cef
commit
88fc88caf5
@ -108,15 +108,9 @@ try_command_on_node $test_node "echo 'function testparm () { tp=\$(which testpar
|
||||
|
||||
n="$rc_local_d/samba-skip-share-check"
|
||||
n_contents='loadconfig() {
|
||||
name="$1"
|
||||
if [ -f /etc/sysconfig/$name ]; then
|
||||
. /etc/sysconfig/$name
|
||||
elif [ -f /etc/default/$name ]; then
|
||||
. /etc/default/$name
|
||||
elif [ -f $CTDB_BASE/sysconfig/$name ]; then
|
||||
. $CTDB_BASE/sysconfig/$name
|
||||
fi
|
||||
if [ "$name" = "ctdb" ] ; then
|
||||
_loadconfig "$@"
|
||||
|
||||
if [ "$1" = "ctdb" ] ; then
|
||||
CTDB_SAMBA_SKIP_SHARE_CHECK=no
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user