mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
check postinstall
This commit is contained in:
parent
7ac5fcc953
commit
4433f1de89
2 changed files with 7 additions and 1 deletions
|
@ -184,6 +184,11 @@ def main():
|
|||
sys.argv.pop(key)
|
||||
|
||||
try:
|
||||
try:
|
||||
with open('/etc/yunohost/installed') as f: pass
|
||||
except IOError:
|
||||
raise YunoHostError(17, _("YunoHost is not correctly installed, please execute 'yunohost tools postinstall'"))
|
||||
|
||||
args = parse_dict(action_map)
|
||||
args_dict = vars(args).copy()
|
||||
for key in args_dict.keys():
|
||||
|
|
|
@ -179,7 +179,8 @@ def tools_postinstall(domain, password):
|
|||
# Create required folders
|
||||
folders_to_create = [
|
||||
'/etc/yunohost/apps',
|
||||
'/etc/yunohost/certs'
|
||||
'/etc/yunohost/certs',
|
||||
'/var/cache/yunohost/repo'
|
||||
]
|
||||
|
||||
for folder in folders_to_create:
|
||||
|
|
Loading…
Reference in a new issue