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. ## 'cron' container.
file_put "$DST" <<EOF file_put "$DST" <<EOF
$schedule root lock $label -D -p 10 -c "\ $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 EOF
chmod +x "$DST" chmod +x "$DST"

2
logrotate/hooks/schedule_command-relation-joined

@ -27,6 +27,6 @@ fi
## 'cron' container. ## 'cron' container.
file_put "$DST" <<EOF file_put "$DST" <<EOF
$schedule root lock $label -D -p 10 -c "\ $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 EOF
chmod +x "$DST" chmod +x "$DST"
Loading…
Cancel
Save