Browse Source

fix: [letsencrypt,logrotate] avoid leaking stopped containers on scheduled commands

framadate
Valentin Lab 6 years ago
parent
commit
b934073834
  1. 2
      letsencrypt/hooks/schedule_command-relation-joined
  2. 2
      logrotate/hooks/schedule_command-relation-joined

2
letsencrypt/hooks/schedule_command-relation-joined

@ -26,7 +26,7 @@ fi
## 'cron' container.
file_put "$DST" <<EOF
$schedule root lock $label -D -p 10 -c "\
dc run $SERVICE_NAME crt renew" 2>&1 | ts '\%F \%T \%Z' >> $LOCAL_LOG
dc run --rm $SERVICE_NAME crt renew" 2>&1 | ts '\%F \%T \%Z' >> $LOCAL_LOG
EOF
chmod +x "$DST"

2
logrotate/hooks/schedule_command-relation-joined

@ -27,6 +27,6 @@ fi
## 'cron' container.
file_put "$DST" <<EOF
$schedule root lock $label -D -p 10 -c "\
dc run $SERVICE_NAME" 2>&1 | ts '\%F \%T \%Z' >> /var/log/cron/${label}_script.log
dc run --rm $SERVICE_NAME" 2>&1 | ts '\%F \%T \%Z' >> /var/log/cron/${label}_script.log
EOF
chmod +x "$DST"
Loading…
Cancel
Save