Create repatch-plex.sh
This commit is contained in:
20
repatch-plex.sh
Normal file
20
repatch-plex.sh
Normal 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:/#
|
||||
Reference in New Issue
Block a user