mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Remove --no-ldap arguments
This commit is contained in:
parent
4599a2724f
commit
9f23945ed7
3 changed files with 7 additions and 7 deletions
2
app.py
2
app.py
|
@ -90,7 +90,7 @@ def app_fetchlist(url=None, name=None):
|
|||
os.rename('%s.tmp' % list_file, list_file)
|
||||
|
||||
os.system("touch /etc/cron.d/yunohost-applist-%s" % name)
|
||||
os.system("echo '00 00 * * * root yunohost app fetchlist -u %s -n %s --no-ldap > /dev/null 2>&1' >/etc/cron.d/yunohost-applist-%s" % (url, name, name))
|
||||
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))
|
||||
|
||||
msignals.display(m18n.n('list_fetched'), 'success')
|
||||
|
||||
|
|
|
@ -386,9 +386,9 @@ def monitor_enable(no_stats=False):
|
|||
if not no_stats:
|
||||
cmd = 'yunohost monitor update-stats'
|
||||
# day: every 5 min # week: every 1 h # month: every 4 h #
|
||||
rules = ('*/5 * * * * root %(cmd)s day --no-ldap >> /dev/null\n' + \
|
||||
'3 * * * * root %(cmd)s week --no-ldap >> /dev/null\n' + \
|
||||
'6 */4 * * * root %(cmd)s month --no-ldap >> /dev/null') % {'cmd': cmd}
|
||||
rules = ('*/5 * * * * root %(cmd)s day >> /dev/null\n' + \
|
||||
'3 * * * * root %(cmd)s week >> /dev/null\n' + \
|
||||
'6 */4 * * * root %(cmd)s month >> /dev/null') % {'cmd': cmd}
|
||||
os.system("touch %s" % crontab_path)
|
||||
os.system("echo '%s' >%s" % (rules, crontab_path))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue