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 <