Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@192.168.100.201's password:
- == Welcome at FFP version 0.7/arm, running on NSA310_ZyXEL nsa310, firmware V4.70(AFK.2) ==
- root@nsa310:~# cd /ffp/start
- root@nsa310:/ffp/start# sh -x NZBautomator.sh
- + . /ffp/start/config.cfg
- ++ SABnzbd=1
- ++ Nzbget=1
- ++ CouchPotato=1
- ++ SickBeard=1
- ++ Headphones=0
- ++ Mylar=0
- ++ NzbtoMedia=1
- ++ bindmount=0
- ++ useradmin=/i-data/md0/admin
- ++ sabconfig=/i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
- ++ sabbackup=/tmp/sabbackup
- ++ couchconfig=/i-data/md0/admin/configuration/couchpotato
- ++ sickconfig=/i-data/md0/admin/configuration/sickbeard
- ++ headconfig=/i-data/md0/admin/configuration/headphones
- ++ mylarconfig=/i-data/md0/admin/configuration/mylar
- ++ nzbtomedia=/i-data/md0/admin/configuration/nzbToMedia
- ++ python='/usr/bin/env python2'
- ++ sabdata=/ffp/bin/sabnzbd
- ++ couchdata=/ffp/bin/couchpotato
- ++ sickdata=/ffp/bin/sickbeard
- ++ headdata=/ffp/bin/headphones
- ++ mylardata=/ffp/bin/mylar
- ++ CPKG_NAME=couchpotato
- ++ CPKG_DIR=/ffp/bin/couchpotato
- ++ CCONFIG_DIR=/i-data/md0/admin/configuration/couchpotato
- ++ CPID_FILE=/i-data/md0/admin/configuration/couchpotato/couchpotato.pid
- ++ SPKG_NAME=SickRage
- ++ SPKG_DIR=/ffp/bin/sickbeard
- ++ SCONFIG_DIR=/i-data/md0/admin/configuration/sickbeard
- ++ SPID_FILE=/i-data/md0/admin/configuration/sickbeard/SickRage.pid
- +++ grep -m 1 api_key /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
- +++ sed 's/""//'
- +++ cut -d ' ' -f 3
- ++ sab_api=b147235cc4489e3d0afedf6718f00947
- +++ grep -w -m 1 password /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
- +++ cut -d ' ' -f 3
- +++ sed 's/""//'
- ++ sab_pass=limpsite
- +++ grep -m 1 username /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
- +++ cut -d ' ' -f 3
- +++ sed 's/""//'
- ++ sab_user=admin
- +++ grep -w -m 1 https_port /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
- +++ cut -d ' ' -f 3
- +++ sed 's/""//'
- ++ sab_sslport=9090
- +++ grep -w -m 1 port /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
- +++ sed 's/""//'
- +++ cut -d ' ' -f 3
- ++ sab_port=8085
- +++ grep -m 1 api_key /i-data/md0/admin/configuration/couchpotato/settings.conf
- +++ cut -d ' ' -f 3
- +++ sed 's/""//'
- ++ couch_api=f6645b3d9d5b4263ba11a2b79e708b5d
- +++ cut -d ' ' -f 3
- +++ sed 's/""//'
- +++ grep -m 1 port /i-data/md0/admin/configuration/couchpotato/settings.conf
- ++ couch_port=5050
- +++ grep -m 1 web_port /i-data/md0/admin/configuration/sickbeard/config.ini
- +++ cut -d ' ' -f 3
- +++ sed 's/""//'
- ++ sb_port=8081
- +++ grep -m 1 api_key /i-data/md0/admin/configuration/sickbeard/config.ini
- +++ cut -d ' ' -f 3
- +++ sed 's/""//'
- ++ sb_api=6a9135736d3d7203249fdb52053f3237
- +++ grep -m 1 api_key /i-data/md0/admin/configuration/headphones/config.ini
- grep: /i-data/md0/admin/configuration/headphones/config.ini: No such file or directory
- +++ sed 's/""//'
- +++ cut -d ' ' -f 3
- ++ head_api=
- +++ grep -m 1 http_port /i-data/md0/admin/configuration/headphones/config.ini
- +++ cut -d ' ' -f 3
- +++ sed 's/""//'
- grep: /i-data/md0/admin/configuration/headphones/config.ini: No such file or directory
- ++ head_port=
- +++ grep -m 1 api_key /i-data/md0/admin/configuration/mylar/config.ini
- grep: /i-data/md0/admin/configuration/mylar/config.ini: No such file or directory
- +++ sed 's/""//'
- +++ cut -d ' ' -f 3
- ++ mylar_api=
- +++ grep -m 1 port /i-data/md0/admin/configuration/mylar/config.ini
- +++ cut -d ' ' -f 3
- +++ sed 's/""//'
- grep: /i-data/md0/admin/configuration/mylar/config.ini: No such file or directory
- ++ mylar_port=
- + '[' 1 == 1 ']'
- ++ wget http://sabnzbd.org/download/ -O -
- --23:11:39-- http://sabnzbd.org/download/
- => `-'
- ++ grep Linux
- ++ awk -F/download '{print $1}'
- ++ awk '-F"' '{print $2}'
- Resolving sabnzbd.org... 104.18.41.215, 104.18.40.215
- Connecting to sabnzbd.org[104.18.41.215]:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: unspecified [text/html]
- [ <=> ] 12,849 --.--K/s
- 23:11:40 (205.99 KB/s) - `-' saved [12849]
- + sabpkg=https://github.com/sabnzbd/sabnzbd/releases
- ++ echo https://github.com/sabnzbd/sabnzbd/releases
- ++ sed 's/.*\(SAB.*\.gz\).*/\1/'
- + sablcl=https://github.com/sabnzbd/sabnzbd/releases
- ++ printf SABnzbd
- ++ echo https://github.com/sabnzbd/sabnzbd/releases
- ++ sed 's/.*SABnzbd\(.*\)-.*/\1/'
- + sabtmpdir=SABnzbdhttps://github.com/sabnzbd/sabnzbd/releases
- + cd /i-data/md0/admin
- + '[' '!' -d /ffp/bin/sabnzbd ']'
- ++ grep -w -m 1 enable_https /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
- ++ cut -d ' ' -f 3
- + '[' 0 == 1 ']'
- ++ grep -w -m 1 port /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
- ++ cut -d ' ' -f 3
- ++ sed 's/""//'
- + sab_port=8085
- + '[' '!' -f /ffp/etc/ssl/certs/cacert.pem ']'
- + '[' 1 == 1 ']'
- + '[' '!' -d /tmp/sabbackup ']'
- + cd /tmp/sabbackup
- + '[' https://github.com/sabnzbd/sabnzbd/releases '!=' '*.gz' ']'
- + rm -f '/tmp/sabbackup/*'
- + wget https://github.com/sabnzbd/sabnzbd/releases -O https://github.com/sabnzbd/sabnzbd/releases
- https://github.com/sabnzbd/sabnzbd/releases: No such file or directory
- + tar xvzf https://github.com/sabnzbd/sabnzbd/releases
- tar: Cannot connect to https: resolve failed
- gzip: stdin: unexpected end of file
- tar: Child returned status 128
- tar: Error is not recoverable: exiting now
- + cp -ru 'SABnzbdhttps://github.com/sabnzbd/sabnzbd/releases/*' /ffp/bin/sabnzbd
- cp: cannot stat `SABnzbdhttps://github.com/sabnzbd/sabnzbd/releases/*': No such file or directory
- + rm -r SABnzbdhttps://github.com/sabnzbd/sabnzbd/releases
- rm: cannot remove `SABnzbdhttps://github.com/sabnzbd/sabnzbd/releases': No such file or directory
- + '[' 1 == 1 ']'
- + '[' -d /ffp/bin/couchpotato ']'
- + cd /ffp/bin/couchpotato
- + git pull https://github.com/RuudBurger/CouchPotatoServer
- From https://github.com/RuudBurger/CouchPotatoServer
- * branch HEAD -> FETCH_HEAD
- Already up-to-date.
- + '[' 1 == 1 ']'
- + '[' -d /ffp/bin/sickbeard ']'
- + git clone https://github.com/SiCKRAGETV/SiCKRAGE /ffp/bin/sickbeard
- Cloning into '/ffp/bin/sickbeard'...
- remote: Counting objects: 50250, done.
- remote: Total 50250 (delta 0), reused 0 (delta 0), pack-reused 50250
- Receiving objects: 100% (50250/50250), 43.62 MiB | 1.84 MiB/s, done.
- Resolving deltas: 100% (31800/31800), done.
- Checking connectivity... done.
- + mkdir -p -m 777 /i-data/md0/admin/configuration/sickbeard
- + sleep 2
- + '[' 0 == 1 ']'
- + '[' 0 == 1 ']'
- + '[' 1 == 1 ']'
- + '[' -d /i-data/md0/admin/configuration/nzbToMedia ']'
- + cd /i-data/md0/admin/configuration/nzbToMedia
- + git pull https://github.com/clinton-hall/nzbToMedia.git
- From https://github.com/clinton-hall/nzbToMedia
- * branch HEAD -> FETCH_HEAD
- Already up-to-date.
- + '[' 1 == 1 ']'
- + pgrep -f SABnzbd.py
- + '[' -f /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini ']'
- + PYTHON_EGG_CACHE=/tmp
- + /usr/bin/env python2 /ffp/bin/sabnzbd/SABnzbd.py -b 0 -d -f /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
- + '[' 1 == 1 ']'
- + '[' -f /i-data/md0/admin/configuration/couchpotato/couchpotato.pid ']'
- ++ /bin/cat /i-data/md0/admin/configuration/couchpotato/couchpotato.pid
- + Pid=5871
- + i=0
- + kill 5871
- + echo -n ' Waiting for couchpotato to shut down: '
- Waiting for couchpotato to shut down: + '[' -d /proc/5871 ']'
- + sleep 1
- + let i+=1
- + /bin/echo -n '1, '
- 1, + '[' 1 = 45 ']'
- + '[' -d /proc/5871 ']'
- + rm -f /i-data/md0/admin/configuration/couchpotato/couchpotato.pid
- + sleep 2
- + echo -n 'Starting couchpotato'
- Starting couchpotato+ /usr/bin/env python2 /ffp/bin/couchpotato/CouchPotato.py --daemon --data_dir /i-data/md0/admin/configuration/couchpotato --config /i-data/md0/admin/configuration/couchpotato/settings.conf --pid_file /i-data/md0/admin/configuration/couchpotato/couchpotato.pid
- + sleep 5
- + '[' 1 == 1 ']'
- + '[' -f /i-data/md0/admin/configuration/sickbeard/SickRage.pid ']'
- + sleep 2
- + echo -n 'Starting SickRage'
- Starting SickRage+ /usr/bin/env python2 /ffp/bin/sickbeard/SickBeard.py --datadir /i-data/md0/admin/configuration/sickbeard --config /i-data/md0/admin/configuration/sickbeard/config.ini -d --pidfile /i-data/md0/admin/configuration/sickbeard/SickRage.pid
- + sleep 5
- + '[' 0 == 1 ']'
- + echo 'Headphones not Installed'
- Headphones not Installed
- + '[' 0 == 1 ']'
- + echo 'Mylar not Installed'
- Mylar not Installed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement