Create repatch-plex.sh

This commit is contained in:
Ssyleric
2025-07-29 16:37:49 +02:00
committed by GitHub
parent 4d9106d935
commit 7a95a7425e

20
repatch-plex.sh Normal file
View File

@@ -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:/#