projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60d6728
)
create_node.py: need to create private/ dir in create-client so we can touch the...
author
Brian Warner
<warner@allmydata.com>
Tue, 18 Dec 2007 22:42:18 +0000
(15:42 -0700)
committer
Brian Warner
<warner@allmydata.com>
Tue, 18 Dec 2007 22:42:18 +0000
(15:42 -0700)
src/allmydata/scripts/create_node.py
patch
|
blob
|
history
diff --git
a/src/allmydata/scripts/create_node.py
b/src/allmydata/scripts/create_node.py
index d69d059fd3fcbb63881db71f18832e7d2a82b81d..d1dbb1ede05e920ab9613f899f8d7891ee8f500c 100644
(file)
--- a/
src/allmydata/scripts/create_node.py
+++ b/
src/allmydata/scripts/create_node.py
@@
-58,6
+58,8
@@
def create_client(basedir, config, out=sys.stdout, err=sys.stderr):
f.close()
# Create an empty my_private_dir.cap file, indicating that the node
# should fill it with the URI after creating the directory.
+ from allmydata.util import fileutil
+ fileutil.make_dirs(os.path.join(basedir, "private"), 0700)
open(os.path.join(basedir, "private", "my_private_dir.cap"), "w")
print >>out, "client created in %s" % basedir
print >>out, " please copy introducer.furl into the directory"