diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 0a7c92947..291d8c77a 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -108,7 +108,7 @@ def app_fetchlist(url=None, name=None): # Rename fetched temp list os.rename('%s.tmp' % list_file, list_file) - os.system("echo '00 00 * * * root yunohost app fetchlist -u %s -n %s > /dev/null 2>&1' >/etc/cron.d/yunohost-applist-%s" % (url, name, name)) + open("/etc/cron.d/yunohost-applist-%s" % name, "w").write('00 00 * * * root yunohost app fetchlist -u %s -n %s > /dev/null 2>&1\n' % (url, name)) logger.success(m18n.n('appslist_fetched'))