Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add logrotate conf #37

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package_scripts/Dockerfile_vanilla
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM ubuntu:jammy
USER root

RUN apt-get update \
&& apt-get install -yqq pango1.0-tools curl
&& apt-get install -yqq pango1.0-tools logrotate curl
2 changes: 1 addition & 1 deletion package_scripts/deb/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Architecture: amd64
Essential: no
Section: web
Priority: optional
Depends: pango1.0-tools
Depends: pango1.0-tools, logrotate
Maintainer: [email protected]
Description: a flask wrapper around weasyprint
This package contains a flask wrapper around weasyprint
Expand Down
3 changes: 3 additions & 0 deletions package_scripts/deb/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ case "$1" in
# install weasyprint service
cp opt/weasyprint/default_conf/systemd/weasyprint.service /lib/systemd/system

# install logrotate conf
cp opt/weasyprint/default_conf/logrotate/weasyprint /etc/logrotate.d

# setup log dir
mkdir -p /var/log/weasyprint
chown weasyprint:weasyprint /var/log/weasyprint
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/var/log/weasyprint/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
copytruncate
}