Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Autoupdate" feature. Update S6. Shellcheck. #81

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ RUN \
uuid-runtime \
unrar \
cron \
multitail \
&& \
\
# Fetch and extract S6 overlay
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ If you wish to migrate an existing directory to the docker config directory:
- `docker exec -it plex /bin/bash`
- See the logs given by the startup script in real time:
- `docker logs -f plex`
- Monitor all Plex Media Server logs:
- `docker exec -it plex /plex-logs.sh`
- Restart the application:
- `docker restart plex`

Expand Down
7 changes: 7 additions & 0 deletions root/plex-logs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

. /plex-envvars

logs="$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/Logs"
multitail --mergeall "$logs"/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want a regex here to exclude \.\d+\.log files otherwise the log rotation may interfere with this.