1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 13:29:42 +02:00

add logrotate for pandora

This commit is contained in:
dbarzin 2023-03-05 13:49:50 +01:00
parent 794bbd193f
commit 8196ae09eb
2 changed files with 20 additions and 1 deletions

View file

@ -8,7 +8,7 @@ User interface
Technical Technical
- [ ] Multi threading - [x] Multi threading
- [ ] ~~Deployment on Raspberry Pi~~ (too slow) - [ ] ~~Deployment on Raspberry Pi~~ (too slow)
- [x] logrotate on pandora-box.log - [x] logrotate on pandora-box.log
- [x] place logs in /var/logs - [x] place logs in /var/logs
@ -16,3 +16,6 @@ Technical
- [ ] Docker script for github continuous integration - [ ] Docker script for github continuous integration
- [x] Improve logs during scan - [x] Improve logs during scan
Known issues
- [ ] mouse click not detcted in console mode on Ubuntu (see: tests/screen.py)

View file

@ -198,6 +198,22 @@ echo " missingok" >> /etc/logrotate.d/pandora-box
echo " notifempty" >> /etc/logrotate.d/pandora-box echo " notifempty" >> /etc/logrotate.d/pandora-box
echo "}" >> /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 # Start Pandora at boot
cp pandora.service /etc/systemd/system/pandora.service cp pandora.service /etc/systemd/system/pandora.service
sed -i "s/_USER_/$SUDO_USER/g" /etc/systemd/system/pandora.service sed -i "s/_USER_/$SUDO_USER/g" /etc/systemd/system/pandora.service