Guest User

Untitled

a guest
Apr 11th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. plexversion='1.12.2.4929-29f6d1796'
  4. #
  5. pkill -9 -fu "$(whoami)" 'plexmediaserver'
  6. pkill -9 -fu "$(whoami)" 'EAE Service'
  7. #
  8. mkdir -p ~/.config/feral/ns/forwarding/tcp && rm -f ~/.config/feral/ns/forwarding/tcp/*
  9. [[ -d ~/Library ]] && rm -rf ~/Library
  10. [[ -d ~/private/plex ]] && rm -rf ~/private/plex
  11. #
  12. read -ep "Enter your plex username: " username
  13. read -ep "Enter your plex password: " password
  14. #
  15. mkdir -p ~/private/plex
  16. echo "$username:$password" >~/private/plex.login
  17. echo "$plexversion" >~/private/plex/.version
  18. #
  19. while [ ! -f ~/private/plex.url ]; do printf '\rInstalling plex, please wait (May take up to 10min)...'; sleep 2; done
  20. echo
  21. echo "Please visit your plex installation on this url: $(cat ~/private/plex.url)"
  22. echo
  23. exit
Add Comment
Please, Sign In to add comment