Skip to content

Commit

Permalink
fix logrotate config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Aug 19, 2023
1 parent 9493f17 commit 1113b59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion root/app/logrotate/jellyfin
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/jellyfin/log_*.log {
su hotio hotio
rotate 12
daily
compress
missingok
notifempty
copytruncate
postrotate
cd /jellyfin
newlog="log_$(date +%Y%m%d).log"
touch "$newlog"
ln -sf "$newlog" "current.log"
chown hotio:hotio *
chown hotio:hotio "$newlog"
endscript
}

0 comments on commit 1113b59

Please sign in to comment.