m + ensure that change stuff always has proper permissions
This commit is contained in:
parent
21eb7358f2
commit
e600c3cb47
2 changed files with 16 additions and 3 deletions
4
setup.py
4
setup.py
|
|
@ -505,9 +505,9 @@ class Setup():
|
|||
print('Creating directory ' + dir)
|
||||
os.mkdir(dir)
|
||||
print('Setting permission mode mask for ' + dir + ' to 6777')
|
||||
Popen('chmod -R 6777 -- ' + dir, shell=True).wait()
|
||||
Popen('chmod -R 6777 -- \'' + dir.replace('\'', '\'\\\'\'') + '\'', shell=True).wait()
|
||||
print('Setting group for ' + dir + ' users')
|
||||
Popen('chown -R :users -- ' + dir, shell=True).wait()
|
||||
Popen('chown -R :users -- \'' + dir.replace('\'', '\'\\\'\'') + '\'', shell=True).wait()
|
||||
for shell in [item[0] for item in shells]:
|
||||
if conf[shell] is not None:
|
||||
for command in commands:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue