ctdb-scripts: Update detect_init_style to use /etc/os-release
[amitay/samba-autobuild/.git] / ctdb / tests / UNIT / eventscripts / etc-ctdb / rc.local
index aa9b8b22fecd75fcebe3168491e600050e7a83b7..777aeaff8b3159867cf488666603198ca62d8210 100755 (executable)
@@ -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