protect data dir by default

This commit is contained in:
Kevin Froman 2020-02-04 16:58:24 -06:00
parent d91480104b
commit b305380447
2 changed files with 5 additions and 1 deletions

View File

@ -18,6 +18,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
''' '''
import os import os
import stat
from . import identifyhome from . import identifyhome
import filepaths import filepaths
home = identifyhome.identify_home() home = identifyhome.identify_home()
@ -33,6 +35,8 @@ def create_dirs():
if not os.path.exists(path): if not os.path.exists(path):
os.mkdir(path) os.mkdir(path)
os.chmod(home, stat.S_IRWXU)
from onionrsetup import dbcreator from onionrsetup import dbcreator
for db in dbcreator.create_funcs: for db in dbcreator.create_funcs:

View File

@ -1 +1 @@
1580852476 1580856998