From 21ab07eff818b72897770caec5c09c58749e41c0 Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 4 May 2022 15:31:59 +0200 Subject: [PATCH] feat(legacy): change logrotate config deploy path BREAKING: the legacy logrotate config filepath was changed from `/etc/logrotate.d/airtime-php` to `/etc/logrotate.d/libretime-legacy` --- docs/releases/unreleased.md | 9 +++++++++ install | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/releases/unreleased.md b/docs/releases/unreleased.md index 4a8e82642..3256c126f 100644 --- a/docs/releases/unreleased.md +++ b/docs/releases/unreleased.md @@ -46,6 +46,15 @@ sudo apt purge \ uwsgi-plugin-python3 ``` +### Logrotate config filepath + +The legacy logrotate config filepath was changed from `/etc/logrotate.d/airtime-php` to `/etc/logrotate.d/libretime-legacy`. The old configuration file must be removed: + +```bash +# Remove the configuration file +sudo rm -f /etc/logrotate.d/airtime-php +``` + ### New configuration schema The configuration schema was updated. diff --git a/install b/install index 499683db3..fec998776 100755 --- a/install +++ b/install @@ -1001,7 +1001,7 @@ if [ ! -d /var/log/libretime ]; then mkdir_and_chown "$web_user:$web_user" "/var/log/libretime" verbose "\n * Copying logrotate files..." - loudCmd "cp ${AIRTIMEROOT}/legacy/install/logrotate/libretime-legacy.conf /etc/logrotate.d/airtime-php" + loudCmd "cp ${AIRTIMEROOT}/legacy/install/logrotate/libretime-legacy.conf /etc/logrotate.d/libretime-legacy" loudCmd "cp ${AIRTIMEROOT}/playout/install/logrotate/libretime-liquidsoap.conf /etc/logrotate.d/libretime-liquidsoap" fi