Sign inSign up

iqimei/logrotate

By iqimei

Updated over 5 years ago

Configure logrotate logrotate_ Interval = daily, the dateyesterday option will be added by default。

Image
0

216

iqimei/logrotate repository overview

原镜像的仓库地址

https://github.com/blacklabelops/logrotate

修改内容

修改仓库中的文件logrotateConf.sh;在conf_dateformat处增加换行以及dateyesterday处理;重新构建镜像,当然我们也可以单独下载此文件,修改后,基于原镜像替换此文件。

  if [ -n "${conf_dateformat}" ]; then
    new_log=${new_log}"\n  dateext\n  dateformat ${conf_dateformat}\n dateyesterday"
  fi

Tag summary

Content type

Image

Digest

Size

15.5 MB

Last updated

over 5 years ago

docker pull iqimei/logrotate:1.3