Install logrotate

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2023-10-31 21:16:05 +01:00
parent c9e23f5a92
commit 06819bdd51
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View File

@ -22,6 +22,7 @@ RUN apk add --no-cache \
iproute2-ss \
jq \
libcap \
logrotate \
ncurses \
nmap-ncat \
procps-ng \
@ -62,7 +63,8 @@ RUN cd /etc/.pihole && \
install -Dm755 -t /opt/pihole ./advanced/Scripts/*.sh && \
install -Dm755 -t /opt/pihole ./advanced/Scripts/COL_TABLE && \
install -Dm755 -d /etc/pihole && \
install -Dm755 -t /etc/pihole ./advanced/Templates/logrotate && \
install -Dm644 -t /etc/pihole ./advanced/Templates/logrotate && \
install -Dm755 -d /var/log/pihole && \
install -Dm755 -t /usr/local/bin pihole && \
install -Dm644 ./advanced/bash-completion/pihole /etc/bash_completion.d/pihole && \
install -T -m 0755 ./advanced/Templates/pihole-FTL-prestart.sh /opt/pihole/pihole-FTL-prestart.sh && \

View File

@ -36,9 +36,6 @@ setFTLConfigValue() {
ensure_basic_configuration() {
echo " [i] Ensuring basic configuration by re-running select functions from basic-install.sh"
# TODO:
# installLogrotate || true #installLogRotate can return 2 or 3, but we are still OK to continue in that case
mkdir -p /var/run/pihole /var/log/pihole
touch /var/log/pihole/FTL.log /var/log/pihole/pihole.log
chown -R pihole:pihole /var/run/pihole /var/log/pihole