Last active
September 22, 2016 06:16
-
-
Save eduo/05769c643ece332d7aad to your computer and use it in GitHub Desktop.
Update Sickrage in Synology via telnet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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