From 8196ae09eb3b00435cb2f162ef82828a9fe3de64 Mon Sep 17 00:00:00 2001 From: dbarzin Date: Sun, 5 Mar 2023 13:49:50 +0100 Subject: [PATCH] add logrotate for pandora --- ROADMAP.md | 5 ++++- install.sh | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 8f2aa10..60d5d0b 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -8,7 +8,7 @@ User interface Technical -- [ ] Multi threading +- [x] Multi threading - [ ] ~~Deployment on Raspberry Pi~~ (too slow) - [x] logrotate on pandora-box.log - [x] place logs in /var/logs @@ -16,3 +16,6 @@ Technical - [ ] Docker script for github continuous integration - [x] Improve logs during scan +Known issues + +- [ ] mouse click not detcted in console mode on Ubuntu (see: tests/screen.py) diff --git a/install.sh b/install.sh index 310ca38..65fcf55 100755 --- a/install.sh +++ b/install.sh @@ -198,6 +198,22 @@ echo " missingok" >> /etc/logrotate.d/pandora-box echo " notifempty" >> /etc/logrotate.d/pandora-box echo "}" >> /etc/logrotate.d/pandora-box +echo "/var/log/pandora_message.log {" > /etc/logrotate.d/pandora_message +echo " rotate 12" >> /etc/logrotate.d/pandora_message +echo " monthly" >> /etc/logrotate.d/pandora_message +echo " compress" >> /etc/logrotate.d/pandora_message +echo " missingok" >> /etc/logrotate.d/pandora_message +echo " notifempty" >> /etc/logrotate.d/pandora_message +echo "}" >> /etc/logrotate.d/pandora_message + +echo "/var/log/pandora_error.log {" > /etc/logrotate.d/pandora_error +echo " rotate 12" >> /etc/logrotate.d/pandora_error +echo " monthly" >> /etc/logrotate.d/pandora_error +echo " compress" >> /etc/logrotate.d/pandora_error +echo " missingok" >> /etc/logrotate.d/pandora_error +echo " notifempty" >> /etc/logrotate.d/pandora_error +echo "}" >> /etc/logrotate.d/pandora_error + # Start Pandora at boot cp pandora.service /etc/systemd/system/pandora.service sed -i "s/_USER_/$SUDO_USER/g" /etc/systemd/system/pandora.service