mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] small refactoring, remove useless exception
This commit is contained in:
parent
3b5b7a9ae6
commit
9b08afc118
1 changed files with 2 additions and 5 deletions
|
@ -347,11 +347,8 @@ def tools_postinstall(operation_logger, domain, password, ignore_dyndns=False,
|
||||||
'/home/yunohost.app'
|
'/home/yunohost.app'
|
||||||
]
|
]
|
||||||
|
|
||||||
for folder in folders_to_create:
|
for folder in filter(not os.path.exists, folders_to_create):
|
||||||
try:
|
os.makedirs(folder)
|
||||||
os.listdir(folder)
|
|
||||||
except OSError:
|
|
||||||
os.makedirs(folder)
|
|
||||||
|
|
||||||
# Change folders permissions
|
# Change folders permissions
|
||||||
os.system('chmod 755 /home/yunohost.app')
|
os.system('chmod 755 /home/yunohost.app')
|
||||||
|
|
Loading…
Add table
Reference in a new issue