From b33e12a647c66cb1515e65983d1d0ee573ffe570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20=C3=81lvaro?= Date: Sun, 6 Jan 2019 13:08:24 +0100 Subject: [PATCH] Bugfix selecting salt logs for logrotate --- assets/runtime/functions.sh | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/assets/runtime/functions.sh b/assets/runtime/functions.sh index 78ace20..a452159 100755 --- a/assets/runtime/functions.sh +++ b/assets/runtime/functions.sh @@ -202,9 +202,7 @@ function configure_logrotate() { echo "Configuring logrotate ..." - if [[ -f /etc/logrotate.d/salt-common ]]; then - rm /etc/logrotate.d/salt-common - fi + rm -f /etc/logrotate.d/salt-common # configure supervisord log rotation cat > /etc/logrotate.d/supervisord < /etc/logrotate.d/salt <