From 7a95a7425e23a2ec39b2aa8beb2ab9035dce352f Mon Sep 17 00:00:00 2001 From: Ssyleric <47066760+Ssyleric@users.noreply.github.com> Date: Tue, 29 Jul 2025 16:37:49 +0200 Subject: [PATCH] Create repatch-plex.sh --- repatch-plex.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 repatch-plex.sh diff --git a/repatch-plex.sh b/repatch-plex.sh new file mode 100644 index 0000000..ed40eb1 --- /dev/null +++ b/repatch-plex.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +PATCHED="/root/plexmediaserver.postinst.patched" +TARGET="/var/lib/dpkg/info/plexmediaserver.postinst" + +echo "🔍 Vérification des fichiers..." +if [ ! -f "$PATCHED" ]; then + echo "❌ Patch introuvable : $PATCHED" + exit 1 +fi + +echo "🩹 Restauration du script postinst corrigé..." +cp "$PATCHED" "$TARGET" +chmod 755 "$TARGET" + +echo "🚀 Reconfiguration du paquet plexmediaserver..." +dpkg --configure plexmediaserver + +echo "✅ Script postinst restauré et Plex reconfiguré." +root@plex:/#