summaryrefslogtreecommitdiffstats
path: root/base/root/scripts/functions
Commit message (Collapse)AuthorAgeFilesLines
* Reorganise base templates directory to allow for node-type-specific files.Martin Schwenke2009-12-041-33/+0
| | | | | | | | | | | | | | | | | | | | | * Previous contents of base/ are now in base/all. * create_node_COMMON() takes an extra argument (inserted as $3) that specifies the node type. All of the create_node_* functions pass "$type" for this argument. * setup_base() now has an optional argument, which is only passed by create_node_COMMON. Rather than simply copying and substituting templates for the entire $BASE_TEMPLATES/ subdirectory it now does this for $BASE_TEMPLATES/all and then $BASE_TEMPLATES/$type. Therefore, the contents of the type-specific directory override the contents of "all" directory. * releases/SoFS.common uses the "all" version of SoFS-postinstall.sh when setting POSTINSTALL_TEMPLATE. This variable also now respects $BASE_TEMPLATES instead of hard-coding the base/ subdirectory. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Fix setup_samba.sh script for ctdb >= 1.0.78.Martin Schwenke2009-07-311-1/+1
| | | | | | | | | | ctdb 1.0.78 changes the format of the output of "ctdb -Y status", causing the cluster_is_healthy() function in base/root/scripts/functions to always fail. This relaxes the matching to look for a 1 bit in the output for a node rather than a particular number of 0s. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add base file /root/scripts/functions. setup_samba.sh now properlyMartin Schwenke2008-09-241-0/+33
waits for a completely healthy cluster. chroot jail generation goes after winbind start. We also no longer try to fix the jail - assume a working cnjailgen is hacked in via some other process. Signed-off-by: Martin Schwenke <martin@meltin.net>