From 05cd5b07741e130bda0dfb634141e1a9e162d95b Mon Sep 17 00:00:00 2001
From: Daniel Winzen <daniel@danwin1210.me>
Date: Wed, 5 Feb 2020 17:59:34 +0100
Subject: [PATCH] Rotate all php version logs

---
 etc/logrotate.d/php-fpm    |  8 ++++++++
 etc/logrotate.d/php7.3-fpm | 11 -----------
 2 files changed, 8 insertions(+), 11 deletions(-)
 create mode 100644 etc/logrotate.d/php-fpm
 delete mode 100644 etc/logrotate.d/php7.3-fpm

diff --git a/etc/logrotate.d/php-fpm b/etc/logrotate.d/php-fpm
new file mode 100644
index 0000000..e8071eb
--- /dev/null
+++ b/etc/logrotate.d/php-fpm
@@ -0,0 +1,8 @@
+/var/log/php*-fpm*.log {
+	rotate 1
+	daily
+	missingok
+	notifempty
+	compress
+	delaycompress
+}
diff --git a/etc/logrotate.d/php7.3-fpm b/etc/logrotate.d/php7.3-fpm
deleted file mode 100644
index de4d714..0000000
--- a/etc/logrotate.d/php7.3-fpm
+++ /dev/null
@@ -1,11 +0,0 @@
-/var/log/php7.3-fpm*.log {
-	rotate 1
-	daily
-	missingok
-	notifempty
-	compress
-	delaycompress
-	postrotate
-		/usr/lib/php/php7.3-fpm-reopenlogs
-	endscript
-}