15 lines
337 B
Bash
Executable File
15 lines
337 B
Bash
Executable File
#! /bin/sh
|
|
|
|
image=lscr.io/linuxserver/plex:latest
|
|
[ -f upgrade ] && podman pull $image && rm upgrade
|
|
|
|
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 \
|
|
$image
|