Skip to content

Commit

Permalink
Fix auto quit.
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhuang committed Jan 10, 2024
1 parent 141446c commit 794cbc9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
tinymediamanager_service:
image: dzhuang/tinymediamanager-docker:v5-latest
image: dzhuang/tinymediamanager:latest-v5
container_name: tinymediamanager-v5
ports:
- 5800:5800
Expand All @@ -14,3 +14,13 @@ services:
GROUP_ID: 1000
USER_ID: 0
TZ: Asia/Hong_Kong

# Enable image/container auto update
watchtower:
image: containrrr/watchtower
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
TZ: Asia/Shanghai
command: --interval 3600 tinymediamanager-v5 --cleanup
2 changes: 1 addition & 1 deletion rootfs/startapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ getpid_tmm() {
fi
fi
if [ "$PID" = "UNSET" ]; then
PID="$(ps -o pid,args | grep -w "tmm.jar" | grep -vw grep | tr -s ' ' | cut -d' ' -f2)"
PID="$(ps -o pid,args | grep -w "/config/tinyMediaManager" | grep -vw grep | tr -s ' ' | cut -d' ' -f2)"
fi
echo "${PID:-UNSET}"
}
Expand Down

0 comments on commit 794cbc9

Please sign in to comment.