ctdb-scripts: Don't use the GNU awk gensub() function
authorMartin Schwenke <martin@meltin.net>
Fri, 19 Dec 2014 03:19:32 +0000 (14:19 +1100)
committerMichael Adam <obnox@samba.org>
Fri, 9 Jan 2015 01:03:40 +0000 (02:03 +0100)
commit4638010abb116aed0c180207aaa11475277aecb7
treef070d74f5a3f6c4c5886415172d570f072bacfe5
parenta5c5eee7d186d938c5b458cb6dbf0c78cb548b63
ctdb-scripts: Don't use the GNU awk gensub() function

This is a gawk extension and can't be used reliably if just running
"awk".  It is simple enough to switch to using the standard sub() and
gsub() functions.

The alternative is to switch to explicitly running "gawk".  However,
although the eventscripts aren't exactly portable, it is probably
better to move closer to portability than further away.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
ctdb/config/functions
ctdb/config/statd-callout
ctdb/tests/complex/18_ctdb_reloadips.sh
ctdb/tests/scripts/integration.bash