mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
fail
This commit is contained in:
parent
842ec27a48
commit
f9697cbfb3
2 changed files with 9 additions and 2 deletions
|
@ -257,7 +257,8 @@ def app_install(app, domain, path='/', label=None, public=False, protected=True)
|
||||||
|
|
||||||
if 'script_path' in manifest['yunohost']:
|
if 'script_path' in manifest['yunohost']:
|
||||||
os.system('cp -a "'+ app_tmp_folder +'/'+ manifest['yunohost']['script_path'] +'" '+ app_setting_path)
|
os.system('cp -a "'+ app_tmp_folder +'/'+ manifest['yunohost']['script_path'] +'" '+ app_setting_path)
|
||||||
shutil.rmtree(app_tmp_folder)
|
|
||||||
|
shutil.rmtree(app_tmp_folder)
|
||||||
|
|
||||||
if os.system('chmod 400 -R '+ app_setting_path) == 0:
|
if os.system('chmod 400 -R '+ app_setting_path) == 0:
|
||||||
win_msg(_("Installation complete"))
|
win_msg(_("Installation complete"))
|
||||||
|
@ -425,7 +426,12 @@ def _installed_instance_number(app):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
number = 0
|
number = 0
|
||||||
installed_apps = os.listdir(apps_setting_path)
|
try:
|
||||||
|
installed_apps = os.listdir(apps_setting_path)
|
||||||
|
except OSError:
|
||||||
|
os.makedirs(apps_setting_path)
|
||||||
|
return 0
|
||||||
|
|
||||||
for installed_app in installed_apps:
|
for installed_app in installed_apps:
|
||||||
if '__' in installed_app:
|
if '__' in installed_app:
|
||||||
if app == installed_app[:installed_app.index('__')]:
|
if app == installed_app[:installed_app.index('__')]:
|
||||||
|
|
|
@ -4,6 +4,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import datetime
|
import datetime
|
||||||
import re
|
import re
|
||||||
|
import shutil
|
||||||
from urllib import urlopen
|
from urllib import urlopen
|
||||||
from yunohost import YunoHostError, YunoHostLDAP, win_msg, colorize, validate, get_required_args
|
from yunohost import YunoHostError, YunoHostLDAP, win_msg, colorize, validate, get_required_args
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue