mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Use os.mkdirs instead of custom method
This commit is contained in:
1 parent
85f02c744e
commit
7e3d8ce54b
2 files changed
+1
-24
No files matched your search
@@ -43,7 +43,7 @@ class Santiago(PagePlugin):
|
||||
|
||||
self.santiago_dir = os.path.join(cfg.file_root, "data", "santiago", "tor")
|
||||
self.tor_dir = os.path.join(self.santiago_dir, "general")
|
||||
u.mkdir(self.santiago_dir)
|
||||
os.mkdirs(self.santiago_dir)
|
||||
os.system( 'chmod a+w %s' % self.santiago_dir)
|
||||
hidden_service_config = "HiddenServiceDir %s\nHiddenServicePort 80 127.0.0.1:%d" % (self.tor_dir, santiago_port)
|
||||
if hidden_service_config in rc:
|
||||
|
||||
Reference in new issue
Block a user