5 Usage: blackbox_upgradeprovision.sh PREFIX
13 .
`dirname $0`/..
/..
/..
/testprogs
/blackbox
/subunit.sh
16 if [ -d $PREFIX/upgradeprovision
]; then
17 rm -fr $PREFIX/upgradeprovision
19 $PYTHON $SRCDIR/source4/setup
/provision
--domain=FOO
--realm=foo.example.com
--targetdir="$PREFIX/upgradeprovision" --server-role="dc"
20 $PYTHON $SRCDIR/source4/scripting
/bin
/upgradeprovision
-s "$PREFIX/upgradeprovision/etc/smb.conf" --debugchange
23 upgradeprovision_full
() {
24 if [ -d $PREFIX/upgradeprovision_full
]; then
25 rm -fr $PREFIX/upgradeprovision_full
27 $PYTHON $SRCDIR/source4/setup
/provision
--host-name=bar
--domain=FOO
--realm=foo.example.com
--targetdir="$PREFIX/upgradeprovision_full" --server-role="dc"
28 $PYTHON $SRCDIR/source4/scripting
/bin
/upgradeprovision
-s "$PREFIX/upgradeprovision_full/etc/smb.conf" --full --debugchange
31 if [ -d $PREFIX/upgradeprovision
]; then
32 rm -fr $PREFIX/upgradeprovision
35 if [ -d $PREFIX/upgradeprovision_full
]; then
36 rm -fr $PREFIX/upgradeprovision_full
39 testit
"upgradeprovision" upgradeprovision
40 testit
"upgradeprovision_full" upgradeprovision_full