5 Usage: renamedc.sh PREFIX
13 .
`dirname $0`/subunit.sh
15 if [ ! -d $PREFIX/upgradeprovision_full
]; then
16 $PYTHON $SRCDIR/source4/setup
/provision
--host-name=bar
--domain=FOO
--realm=foo.example.com
--targetdir="$PREFIX/upgradeprovision_full" --server-role="dc"
21 $PYTHON $SRCDIR/source4/scripting
/bin
/renamedc \
23 --newname="RAYMONBAR" \
24 -s $PREFIX/upgradeprovision_full
/etc
/smb.conf
29 $PYTHON $SRCDIR/source4/scripting
/bin
/renamedc \
30 --oldname="RAYMONBAR" \
32 -s $PREFIX/upgradeprovision_full
/etc
/smb.conf
35 testit
"renamedc" testrenamedc
36 testit
"renamedc2" testrenamedc2
38 if [ $failed -eq 0 ]; then
39 rm -rf $PREFIX/upgradeprovision_full