2023-12-28 10:07:43 -07:00
|
|
|
#! /bin/sh
|
2024-11-28 13:36:19 -07:00
|
|
|
|
|
|
|
image=lscr.io/linuxserver/plex:latest
|
|
|
|
[ -f upgrade ] && podman pull $image && rm upgrade
|
|
|
|
|
2023-12-28 10:07:43 -07:00
|
|
|
me=$(basename $(pwd))
|
|
|
|
podman rm $me
|
|
|
|
podman run \
|
|
|
|
--name $me \
|
|
|
|
--network host \
|
|
|
|
--env VERSION=public \
|
|
|
|
--mount type=bind,src=/srv/sys/plex,dst=/config \
|
|
|
|
--mount type=bind,src=/srv/media,dst=/srv/media,readonly=true \
|
2024-11-28 13:36:19 -07:00
|
|
|
$image
|