Bug#843561: certbot: Skip use perl in cron-script, just use shell

2016-12-06 Thread debbug
Second that using 

-0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && 
perl -e 'sleep int(rand(3600))' && certbot -q renew
+0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && /
bin/sh -c "/bin/sleep $((RANDOM%3600))" && certbot -q renew

Corb



Bug#843561: certbot: Skip use perl in cron-script, just use shell

2016-11-12 Thread Kazuhiro NISHIYAMA
I think `$((RANDOM\%3600))` always means 0 when /bin/sh is dash.
I think it should be `bash -c 'sleep $((RANDOM\%3600))'` or something else.



Bug#843561: certbot: Skip use perl in cron-script, just use shell

2016-11-07 Thread Hans Schou
Package: certbot
Version: 0.9.3-1
Severity: wishlist

Dear Maintainer,

In /etc/cron.d/certbot perl is the only place used. It could be solved with
just shell evaluation and sleep. A more simple script.

-0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && 
perl -e 'sleep int(rand(3600))' && certbot -q renew
+0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && 
/bin/sleep $((RANDOM\%3600)) && certbot -q renew


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages certbot depends on:
ii  dialog   1.3-20160828-1
ii  init-system-helpers  1.45
ii  python-certbot   0.9.3-1
pn  python:any   

certbot recommends no packages.

Versions of packages certbot suggests:
pn  python-certbot-apache  
pn  python-certbot-doc 

-- debconf-show failed