mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 13:29:42 +02:00
Logrotate
This commit is contained in:
parent
b6dc0dd7a5
commit
1a7f1cdad2
1 changed files with 10 additions and 0 deletions
10
install.sh
10
install.sh
|
@ -174,6 +174,16 @@ usermod -a -G tty $SUDO_USER
|
||||||
# allow write to /var/log
|
# allow write to /var/log
|
||||||
usermod -a -G syslog $SUDO_USER
|
usermod -a -G syslog $SUDO_USER
|
||||||
|
|
||||||
|
# logrotate
|
||||||
|
sudo apt install logrotate
|
||||||
|
echo "/var/log/pandora-box.log {" > /etc/logrotate.d/pandora-box
|
||||||
|
echo " rotate 12" >> /etc/logrotate.d/pandora-box
|
||||||
|
echo " monthly" >> /etc/logrotate.d/pandora-box
|
||||||
|
echo " compress" >> /etc/logrotate.d/pandora-box
|
||||||
|
ecjo " missingok" >> /etc/logrotate.d/pandora-box
|
||||||
|
echo " notifempty" >> /etc/logrotate.d/pandora-box
|
||||||
|
echo "}" >> /etc/logrotate.d/pandora-box
|
||||||
|
|
||||||
# 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue