From f175d48c276215f77d724ed2f80551960b893dcb Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Thu, 20 Mar 2014 00:13:31 +0100 Subject: [PATCH] fetchlist makes cron verbose and send mails --- yunohost_app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yunohost_app.py b/yunohost_app.py index 36074183..61a13e8d 100644 --- a/yunohost_app.py +++ b/yunohost_app.py @@ -66,8 +66,8 @@ def app_fetchlist(url=None, name=None): Fetch application list from app server Keyword argument: - name -- Name of the list (default fapp) - url -- URL of remote JSON list (default http://fapp.yunohost.org/app/list/raw) + name -- Name of the list (default yunohost) + url -- URL of remote JSON list (default http://app.yunohost.org/list.json) """ # 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.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"))