Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- +++ cut -d ' ' -f 3
- +++ sed 's/""//'
- ++ sab_api=b147235cc4489e3d0afedf6718f00947
- +++ grep -w -m 1 password /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
- +++ sed 's/""//'
- +++ cut -d ' ' -f 3
- ++ 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
- +++ grep -m 1 port /i-data/md0/admin/configuration/couchpotato/settings.conf
- +++ sed 's/""//'
- +++ cut -d ' ' -f 3
- ++ 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
- +++ sed 's/""//'
- +++ cut -d ' ' -f 3
- ++ sb_api=6a9135736d3d7203249fdb52053f3237
- +++ grep -m 1 api_key /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_api=
- +++ grep -m 1 http_port /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_port=
- +++ grep -m 1 api_key /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_api=
- +++ grep -m 1 port /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_port=
- + '[' 1 == 1 ']'
- ++ wget http://sabnzbd.org/download/ -O -
- ++ grep Linux
- ++ awk -F/download '{print $1}'
- ++ awk '-F"' '{print $2}'
- --14:59:28-- http://sabnzbd.org/download/
- => `-'
- Resolving sabnzbd.org... 104.18.40.215, 104.18.41.215
- Connecting to sabnzbd.org[104.18.40.215]:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: unspecified [text/html]
- [ <=> ] 13,072 --.--K/s
- 14:59:28 (175.80 KB/s) - `-' saved [13072]
- + sabpkg=http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/0.7.20/SABnzbd-0.7.20-src.tar.gz
- ++ echo http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/0.7.20/SABnzbd-0.7.20-src.tar.gz
- ++ sed 's/.*\(SAB.*\.gz\).*/\1/'
- + sablcl=SABnzbd-0.7.20-src.tar.gz
- ++ printf SABnzbd
- ++ echo http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/0.7.20/SABnzbd-0.7.20-src.tar.gz
- ++ sed 's/.*SABnzbd\(.*\)-.*/\1/'
- + sabtmpdir=SABnzbd-0.7.20
- + 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
- + '[' SABnzbd-0.7.20-src.tar.gz '!=' SABnzbd-0.7.20-src.tar.gz ']'
- + '[' '!' -f /ffp/bin/sabnzbd/SABnzbd.py ']'
- + echo 'SAB Already up-to-date.'
- SAB Already up-to-date.
- + sleep 2
- + '[' 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 ']'
- + cd /ffp/bin/sickbeard
- + git pull https://github.com/SiCKRAGETV/SickRage.git
- From https://github.com/SiCKRAGETV/SickRage
- * branch HEAD -> FETCH_HEAD
- Already up-to-date.
- + '[' 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
- 3519
- ++ grep -w -m 1 enable_https /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
- ++ cut -d ' ' -f 3
- + [[ 0 == 1 ]]
- + wget -q --delete-after 'http://localhost:8085/sabnzbd/api?mode=shutdown&ma_username=admin&ma_password=limpsite&apikey=b147235cc4489e3d0afedf6718f00947'
- + sleep 5
- + /usr/bin/env python2 /ffp/bin/sabnzbd/SABnzbd.py -b 0 -d -f /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini PYTHON_EGG_CACHE=/tmp
- + '[' 1 == 1 ']'
- + '[' -f /i-data/md0/admin/configuration/couchpotato/couchpotato.pid ']'
- ++ /bin/cat /i-data/md0/admin/configuration/couchpotato/couchpotato.pid
- + Pid=3986
- + i=0
- + kill 3986
- + echo -n ' Waiting for couchpotato to shut down: '
- Waiting for couchpotato to shut down: + '[' -d /proc/3986 ']'
- + sleep 1
- + let i+=1
- + /bin/echo -n '1, '
- 1, + '[' 1 = 45 ']'
- + '[' -d /proc/3986 ']'
- + 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
- root@nsa310:/ffp/start#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement