mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-08-02 20:35:26 +02:00
add logrotate for pandora
This commit is contained in:
parent
794bbd193f
commit
8196ae09eb
2 changed files with 20 additions and 1 deletions
16
install.sh
16
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue