mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-14 05:53:01 +01:00
plex remove old gpg
This commit is contained in:
@@ -46,11 +46,11 @@ function update_script() {
|
||||
"main"
|
||||
msg_ok "Migrated to new Plex repository"
|
||||
fi
|
||||
elif [[ -f /etc/apt/sources.list.d/plexmediaserver.list ]]; then
|
||||
elif compgen -G "/etc/apt/sources.list.d/plex*.list" >/dev/null; then
|
||||
msg_info "Migrating to new Plex repository (deb822)"
|
||||
rm -f /etc/apt/sources.list.d/plexmediaserver.list
|
||||
rm -f /etc/apt/sources.list.d/plex*
|
||||
rm -f /etc/apt/sources.list.d/plex*.list
|
||||
rm -f /usr/share/keyrings/PlexSign.asc
|
||||
rm -f /usr/share/keyrings/plexmediaserver.v2.gpg
|
||||
setup_deb822_repo \
|
||||
"plexmediaserver" \
|
||||
"https://downloads.plex.tv/plex-keys/PlexSign.v2.key" \
|
||||
@@ -58,7 +58,7 @@ function update_script() {
|
||||
"public" \
|
||||
"main"
|
||||
msg_ok "Migrated to new Plex repository (deb822)"
|
||||
else
|
||||
elif [[ ! -f /etc/apt/sources.list.d/plexmediaserver.sources ]]; then
|
||||
msg_info "Setting up Plex repository"
|
||||
setup_deb822_repo \
|
||||
"plexmediaserver" \
|
||||
|
||||
Reference in New Issue
Block a user