Update plex_setup.sh

This commit is contained in:
tteck 2021-10-05 13:05:31 -04:00 committed by GitHub
parent fe71fa8fc8
commit b689935607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ apt-get autoremove >/dev/null
msg "Updating LXC OS..."
apt-get update >/dev/null
apt-get -qqy upgrade &>/dev/null
apt-get dist-upgrade &>/dev/null
msg "Installing Prerequisites..."
apt-get -qqy install \
@ -38,11 +38,11 @@ apt-get -qqy install \
sudo &>/dev/null
msg "Installing Plex Server.."
echo deb https://downloads.plex.tv/repo/deb public main | tee /etc/apt/sources.list.d/plexmediaserver.list &>/dev/null
curl https://downloads.plex.tv/plex-keys/PlexSign.key | apt-key add - &>/dev/null
deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list &>/dev/null
curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add - &>/dev/null
apt-get update &>/dev/null
apt-get install plexmediaserver &>/dev/null
apt-get upgrade &>/dev/null
apt-get dist-upgrade &>/dev/null
msg "Customizing LXC..."
rm /etc/motd
@ -59,4 +59,4 @@ systemctl daemon-reload
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
msg "Cleanup..."
rm -rf /plex_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*
rm -rf /plex_setup.sh /var/{cache,log}/* /var/lib/apt/lists/*