diff options
Diffstat (limited to 'mkosi.postinst')
-rwxr-xr-x | mkosi.postinst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mkosi.postinst b/mkosi.postinst new file mode 100755 index 0000000..303a4eb --- /dev/null +++ b/mkosi.postinst @@ -0,0 +1,22 @@ +#!/bin/sh +set -ex + +export DEBIAN_FRONTEND=noninteractive +export XDG_CONFIG_HOME="/config/xdg" + +groupadd --system --gid 997 plex +useradd --system --gid 997 --uid 997 plex + +echo deb https://downloads.plex.tv/repo/deb public main > /etc/apt/sources.list.d/plex.list + +curl https://downloads.plex.tv/plex-keys/PlexSign.key | apt-key add - + +apt update + +apt install --yes plexmediaserver + +# plex adds its own repo-file, with everything commented out. I guess plex +# wants to do in-app upgrades. +rm /etc/apt/sources.list.d/plex.list + +apt update |