cluster-deployment/src/steps-config/100-logrotate.sh

14 lines
255 B
Bash
Executable File

#!/usr/bin/env bash
if ! command_exists logrotate; then
task_begin "Installing logrotate";
queue_apt_install logrotate;
mkdir -p /etc/logrotate.d;
touch /etc/logrotate.d/misc;
task_end "$?" "Failed to configure installation of logrotate";
fi