protect data dir by default
parent
d91480104b
commit
b305380447
|
@ -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:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1580852476
|
1580856998
|
Loading…
Reference in New Issue