git.samba.org
/
amitay
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ctdb-scripts: Update detect_init_style to use /etc/os-release
[amitay/samba-autobuild/.git]
/
ctdb
/
tests
/
UNIT
/
eventscripts
/
etc-ctdb
/
rc.local
diff --git
a/ctdb/tests/UNIT/eventscripts/etc-ctdb/rc.local
b/ctdb/tests/UNIT/eventscripts/etc-ctdb/rc.local
index aa9b8b22fecd75fcebe3168491e600050e7a83b7..777aeaff8b3159867cf488666603198ca62d8210 100755
(executable)
--- a/
ctdb/tests/UNIT/eventscripts/etc-ctdb/rc.local
+++ b/
ctdb/tests/UNIT/eventscripts/etc-ctdb/rc.local
@@
-51,4
+51,6
@@
background_with_logging ()
"$@" 2>&1 </dev/null | sed -e 's@^@\&@'
}
-CTDB_INIT_STYLE="${EVENTSCRIPT_TESTS_INIT_STYLE:-redhat}"
+if [ -n "$EVENTSCRIPT_TESTS_INIT_STYLE" ]; then
+ CTDB_INIT_STYLE="$EVENTSCRIPT_TESTS_INIT_STYLE"
+fi