diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-12-11 03:38:09 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-12-11 03:38:09 +0000 |
commit | 7a7baf22994d8c7e007adbdb6d59ca8eafb38bf3 (patch) | |
tree | df9061508685561c9c8f66c224542bab17323c15 /src/sbin/bcfg2-admin | |
parent | 026e4c6281f329561fe4474a3d3678f53495df23 (diff) | |
download | bcfg2-7a7baf22994d8c7e007adbdb6d59ca8eafb38bf3.tar.gz bcfg2-7a7baf22994d8c7e007adbdb6d59ca8eafb38bf3.tar.bz2 bcfg2-7a7baf22994d8c7e007adbdb6d59ca8eafb38bf3.zip |
2 Minor bcfg2-admin updates (Resolves Ticket #323)
* Setup Base and Bundler directories
* Add message upon successful completion
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2577 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2-admin')
-rwxr-xr-x | src/sbin/bcfg2-admin | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin index bd4fe4e92..60b11c235 100755 --- a/src/sbin/bcfg2-admin +++ b/src/sbin/bcfg2-admin @@ -89,7 +89,8 @@ def initialize_repo(): pass #create the repo dirs - for subdir in ['SSHbase', 'Cfg', 'Pkgmgr', 'Svcmgr', 'Rules', 'etc', 'Metadata' ]: + for subdir in ['SSHbase', 'Cfg', 'Pkgmgr', 'Svcmgr', 'Rules', 'etc', 'Metadata', + 'Base', 'Bundler']: path = "%s/%s" % (repo, subdir) newpath = '' for subdir in path.split('/'): @@ -123,6 +124,7 @@ def initialize_repo(): #now the clients file open("%s/Metadata/clients.xml"%repo, "w").write(clients%socket.getfqdn()) + print "Repository created successfuly in %s" % (repo) def update_file(path, diff): '''Update file at path using diff''' |