Skip to content

Instantly share code, notes, and snippets.

@nathanielcwm
Last active July 21, 2019 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanielcwm/c5f17cff1439f489e25ebf503302b144 to your computer and use it in GitHub Desktop.
Save nathanielcwm/c5f17cff1439f489e25ebf503302b144 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
systemctl stop plexmediaserver
cd '/var/lib/plex/Plex Media Server/Plug-ins/Hama.bundle'
git pull
wget -O '/var/lib/plex/Plex Media Server/Scanners/Series/Absolute Series Scanner.py' https://raw.githubusercontent.com/ZeroQI/Absolute-Series-Scanner/master/Scanners/Series/Absolute%20Series%20Scanner.py
chown -R plex:plex '/var/lib/plex/Plex Media Server/Scanners'
chmod 775 -R '/var/lib/plex/Plex Media Server/Scanners'
systemctl start plexmediaserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment