mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
fetchlist makes cron verbose and send mails
This commit is contained in:
parent
34869a523d
commit
f175d48c27
1 changed files with 3 additions and 3 deletions
|
@ -66,8 +66,8 @@ def app_fetchlist(url=None, name=None):
|
||||||
Fetch application list from app server
|
Fetch application list from app server
|
||||||
|
|
||||||
Keyword argument:
|
Keyword argument:
|
||||||
name -- Name of the list (default fapp)
|
name -- Name of the list (default yunohost)
|
||||||
url -- URL of remote JSON list (default http://fapp.yunohost.org/app/list/raw)
|
url -- URL of remote JSON list (default http://app.yunohost.org/list.json)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# Create app path if not exists
|
# Create app path if not exists
|
||||||
|
@ -89,7 +89,7 @@ def app_fetchlist(url=None, name=None):
|
||||||
os.rename(list_file +'.tmp', list_file)
|
os.rename(list_file +'.tmp', list_file)
|
||||||
|
|
||||||
os.system("touch /etc/cron.d/yunohost-applist-"+ name)
|
os.system("touch /etc/cron.d/yunohost-applist-"+ name)
|
||||||
os.system("echo '00 00 * * * root yunohost app fetchlist -u "+ url +" -n "+ name +" --no-ldap >> /dev/null' >/etc/cron.d/yunohost-applist-"+ name)
|
os.system("echo '00 00 * * * root yunohost app fetchlist -u "+ url +" -n "+ name +" --no-ldap > /dev/null 2>&1' >/etc/cron.d/yunohost-applist-"+ name)
|
||||||
|
|
||||||
win_msg(_("List successfully fetched"))
|
win_msg(_("List successfully fetched"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue