From 7fb37209eed5a67e1e35fcd00fa2aa8acc187c7b Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 18 Dec 2007 15:42:18 -0700 Subject: [PATCH] create_node.py: need to create private/ dir in create-client so we can touch the my_private_dir.cap file --- src/allmydata/scripts/create_node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/allmydata/scripts/create_node.py b/src/allmydata/scripts/create_node.py index d69d059f..d1dbb1ed 100644 --- 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" -- 2.45.2