Skip to content

Instantly share code, notes, and snippets.

@eduo
Last active September 22, 2016 06:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduo/05769c643ece332d7aad to your computer and use it in GitHub Desktop.
Save eduo/05769c643ece332d7aad to your computer and use it in GitHub Desktop.
Update Sickrage in Synology via telnet
#!/bin/bash
#
# Replace 192.168.1.100 with your Synology's IP
# First enable Telnet access in your Synology
### Login: root
### Password: YOURPASSWORD
#telnet 192.168.1.100
ISRUNNING=$(/var/packages/sickbeard-custom/scripts/start-stop-status status|cut -f4 -d" ")
if [[ ${ISRUNNING} = "running" ]]
then
/var/packages/sickbeard-custom/scripts/start-stop-status stop
fi
cd /volume1/@appstore/sickbeard-custom/var;
rm -Rf SickBeard;
/volume1/@appstore/git/bin/git clone https://github.com/SiCKRAGETV/SickRage.git SickBeard
chown -R sickbeard-custom:sickbeard-custom SickBeard
/var/packages/sickbeard-custom/scripts/start-stop-status start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment