Commit b3053804 authored by Kevin Froman's avatar Kevin Froman

protect data dir by default

parent d9148010
Pipeline #115016866 passed with stage
in 4 minutes and 22 seconds
......@@ -18,6 +18,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
'''
import os
import stat
from . import identifyhome
import filepaths
home = identifyhome.identify_home()
......@@ -33,6 +35,8 @@ def create_dirs():
if not os.path.exists(path):
os.mkdir(path)
os.chmod(home, stat.S_IRWXU)
from onionrsetup import dbcreator
for db in dbcreator.create_funcs:
......
1580852476
\ No newline at end of file
1580856998
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment