From 56880587323b78df44ccdb35833f2f75d354f354 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 26 Nov 2021 22:24:06 +0000 Subject: [PATCH] Add logrotate fix --- src/run.sh | 1 + src/steps-config/100-logrotate.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100755 src/steps-config/100-logrotate.sh diff --git a/src/run.sh b/src/run.sh index 913ea62..1f3122e 100755 --- a/src/run.sh +++ b/src/run.sh @@ -130,6 +130,7 @@ fi ### source ./steps-config/50-avahi-daemon.sh +source ./steps-config/100-logrotate.sh stage_end "$?"; diff --git a/src/steps-config/100-logrotate.sh b/src/steps-config/100-logrotate.sh new file mode 100755 index 0000000..640b7a3 --- /dev/null +++ b/src/steps-config/100-logrotate.sh @@ -0,0 +1,13 @@ +#!/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