From eb67fff397830bb1101583ba2dbf17165a1ebc18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20=C3=81lvaro?= Date: Sun, 17 May 2020 12:09:57 +0200 Subject: [PATCH] feat: Add salt-api to logrotate settings --- assets/runtime/functions.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/assets/runtime/functions.sh b/assets/runtime/functions.sh index 216ef9a..b5c744f 100755 --- a/assets/runtime/functions.sh +++ b/assets/runtime/functions.sh @@ -310,6 +310,21 @@ ${SALT_LOGS_DIR}/salt/key { notifempty } EOF + + if [[ "${SALT_API_SERVICE_ENABLED}" == true ]]; then + # configure salt-api log rotation + cat >> /etc/logrotate.d/salt <