ctdb-build: Enable some standard event scripts if none are enabled
authorMartin Schwenke <martin@meltin.net>
Sat, 7 Jul 2018 05:23:27 +0000 (15:23 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 11 Jul 2018 09:48:38 +0000 (11:48 +0200)
commit0937ce04222ee726a2ca7d87e3b2bf176b883340
tree79acdd636285874e4c4c318f1899b1bd559f44c6
parent06be1c8593fc84068896b428bdc39e7033bd85e2
ctdb-build: Enable some standard event scripts if none are enabled

CTDB needs the legacy/00.ctdb event script to be able to function
properly.  If this script is not enabled then assume a first-time
install or an upgrade to a version that requires events scripts to be
enabled via symlinks.  In these cases enable this script and other
commonly used scripts.

Only do this for a direct install.  If DESTDIR is being used then
assume a package is being built and let the packager handle this case.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/wscript