Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.45 KB | None | 0 0
  1. root@nsa310:/ffp/start# sh -x NZBautomator.sh
  2. + . /ffp/start/config.cfg
  3. ++ SABnzbd=1
  4. ++ Nzbget=1
  5. ++ CouchPotato=1
  6. ++ SickBeard=1
  7. ++ Headphones=0
  8. ++ Mylar=0
  9. ++ NzbtoMedia=1
  10. ++ bindmount=0
  11. ++ useradmin=/i-data/md0/admin
  12. ++ sabconfig=/i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  13. ++ sabbackup=/tmp/sabbackup
  14. ++ couchconfig=/i-data/md0/admin/configuration/couchpotato
  15. ++ sickconfig=/i-data/md0/admin/configuration/sickbeard
  16. ++ headconfig=/i-data/md0/admin/configuration/headphones
  17. ++ mylarconfig=/i-data/md0/admin/configuration/mylar
  18. ++ nzbtomedia=/i-data/md0/admin/configuration/nzbToMedia
  19. ++ python='/usr/bin/env python2'
  20. ++ sabdata=/ffp/bin/sabnzbd
  21. ++ couchdata=/ffp/bin/couchpotato
  22. ++ sickdata=/ffp/bin/sickbeard
  23. ++ headdata=/ffp/bin/headphones
  24. ++ mylardata=/ffp/bin/mylar
  25. ++ CPKG_NAME=couchpotato
  26. ++ CPKG_DIR=/ffp/bin/couchpotato
  27. ++ CCONFIG_DIR=/i-data/md0/admin/configuration/couchpotato
  28. ++ CPID_FILE=/i-data/md0/admin/configuration/couchpotato/couchpotato.pid
  29. ++ SPKG_NAME=SickRage
  30. ++ SPKG_DIR=/ffp/bin/sickbeard
  31. ++ SCONFIG_DIR=/i-data/md0/admin/configuration/sickbeard
  32. ++ SPID_FILE=/i-data/md0/admin/configuration/sickbeard/SickRage.pid
  33. +++ grep -m 1 api_key /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  34. +++ cut -d ' ' -f 3
  35. +++ sed 's/""//'
  36. ++ sab_api=b147235cc4489e3d0afedf6718f00947
  37. +++ grep -w -m 1 password /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  38. +++ sed 's/""//'
  39. +++ cut -d ' ' -f 3
  40. ++ sab_pass=limpsite
  41. +++ grep -m 1 username /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  42. +++ cut -d ' ' -f 3
  43. +++ sed 's/""//'
  44. ++ sab_user=admin
  45. +++ grep -w -m 1 https_port /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  46. +++ cut -d ' ' -f 3
  47. +++ sed 's/""//'
  48. ++ sab_sslport=9090
  49. +++ grep -w -m 1 port /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  50. +++ sed 's/""//'
  51. +++ cut -d ' ' -f 3
  52. ++ sab_port=8085
  53. +++ grep -m 1 api_key /i-data/md0/admin/configuration/couchpotato/settings.conf
  54. +++ cut -d ' ' -f 3
  55. +++ sed 's/""//'
  56. ++ couch_api=f6645b3d9d5b4263ba11a2b79e708b5d
  57. +++ grep -m 1 port /i-data/md0/admin/configuration/couchpotato/settings.conf
  58. +++ sed 's/""//'
  59. +++ cut -d ' ' -f 3
  60. ++ couch_port=5050
  61. +++ grep -m 1 web_port /i-data/md0/admin/configuration/sickbeard/config.ini
  62. +++ cut -d ' ' -f 3
  63. +++ sed 's/""//'
  64. ++ sb_port=8081
  65. +++ grep -m 1 api_key /i-data/md0/admin/configuration/sickbeard/config.ini
  66. +++ sed 's/""//'
  67. +++ cut -d ' ' -f 3
  68. ++ sb_api=6a9135736d3d7203249fdb52053f3237
  69. +++ grep -m 1 api_key /i-data/md0/admin/configuration/headphones/config.ini
  70. +++ cut -d ' ' -f 3
  71. +++ sed 's/""//'
  72. grep: /i-data/md0/admin/configuration/headphones/config.ini: No such file or directory
  73. ++ head_api=
  74. +++ grep -m 1 http_port /i-data/md0/admin/configuration/headphones/config.ini
  75. grep: /i-data/md0/admin/configuration/headphones/config.ini: No such file or directory
  76. +++ sed 's/""//'
  77. +++ cut -d ' ' -f 3
  78. ++ head_port=
  79. +++ grep -m 1 api_key /i-data/md0/admin/configuration/mylar/config.ini
  80. +++ cut -d ' ' -f 3
  81. +++ sed 's/""//'
  82. grep: /i-data/md0/admin/configuration/mylar/config.ini: No such file or directory
  83. ++ mylar_api=
  84. +++ grep -m 1 port /i-data/md0/admin/configuration/mylar/config.ini
  85. grep: /i-data/md0/admin/configuration/mylar/config.ini: No such file or directory
  86. +++ sed 's/""//'
  87. +++ cut -d ' ' -f 3
  88. ++ mylar_port=
  89. + '[' 1 == 1 ']'
  90. ++ wget http://sabnzbd.org/download/ -O -
  91. ++ grep Linux
  92. ++ awk -F/download '{print $1}'
  93. ++ awk '-F"' '{print $2}'
  94. --14:59:28-- http://sabnzbd.org/download/
  95. => `-'
  96. Resolving sabnzbd.org... 104.18.40.215, 104.18.41.215
  97. Connecting to sabnzbd.org[104.18.40.215]:80... connected.
  98. HTTP request sent, awaiting response... 200 OK
  99. Length: unspecified [text/html]
  100.  
  101. [ <=> ] 13,072 --.--K/s
  102.  
  103. 14:59:28 (175.80 KB/s) - `-' saved [13072]
  104.  
  105. + sabpkg=http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/0.7.20/SABnzbd-0.7.20-src.tar.gz
  106. ++ echo http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/0.7.20/SABnzbd-0.7.20-src.tar.gz
  107. ++ sed 's/.*\(SAB.*\.gz\).*/\1/'
  108. + sablcl=SABnzbd-0.7.20-src.tar.gz
  109. ++ printf SABnzbd
  110. ++ echo http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/0.7.20/SABnzbd-0.7.20-src.tar.gz
  111. ++ sed 's/.*SABnzbd\(.*\)-.*/\1/'
  112. + sabtmpdir=SABnzbd-0.7.20
  113. + cd /i-data/md0/admin
  114. + '[' '!' -d /ffp/bin/sabnzbd ']'
  115. ++ grep -w -m 1 enable_https /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  116. ++ cut -d ' ' -f 3
  117. + '[' 0 == 1 ']'
  118. ++ grep -w -m 1 port /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  119. ++ cut -d ' ' -f 3
  120. ++ sed 's/""//'
  121. + sab_port=8085
  122. + '[' '!' -f /ffp/etc/ssl/certs/cacert.pem ']'
  123. + '[' 1 == 1 ']'
  124. + '[' '!' -d /tmp/sabbackup ']'
  125. + cd /tmp/sabbackup
  126. + '[' SABnzbd-0.7.20-src.tar.gz '!=' SABnzbd-0.7.20-src.tar.gz ']'
  127. + '[' '!' -f /ffp/bin/sabnzbd/SABnzbd.py ']'
  128. + echo 'SAB Already up-to-date.'
  129. SAB Already up-to-date.
  130. + sleep 2
  131. + '[' 1 == 1 ']'
  132. + '[' -d /ffp/bin/couchpotato ']'
  133. + cd /ffp/bin/couchpotato
  134. + git pull https://github.com/RuudBurger/CouchPotatoServer
  135. From https://github.com/RuudBurger/CouchPotatoServer
  136. * branch HEAD -> FETCH_HEAD
  137. Already up-to-date.
  138. + '[' 1 == 1 ']'
  139. + '[' -d /ffp/bin/sickbeard ']'
  140. + cd /ffp/bin/sickbeard
  141. + git pull https://github.com/SiCKRAGETV/SickRage.git
  142. From https://github.com/SiCKRAGETV/SickRage
  143. * branch HEAD -> FETCH_HEAD
  144. Already up-to-date.
  145. + '[' 0 == 1 ']'
  146. + '[' 0 == 1 ']'
  147. + '[' 1 == 1 ']'
  148. + '[' -d /i-data/md0/admin/configuration/nzbToMedia ']'
  149. + cd /i-data/md0/admin/configuration/nzbToMedia
  150. + git pull https://github.com/clinton-hall/nzbToMedia.git
  151. From https://github.com/clinton-hall/nzbToMedia
  152. * branch HEAD -> FETCH_HEAD
  153. Already up-to-date.
  154. + '[' 1 == 1 ']'
  155. + pgrep -f SABnzbd.py
  156. 3519
  157. ++ grep -w -m 1 enable_https /i-data/md0/admin/configuration/sabnzbd/sabnzbd.ini
  158. ++ cut -d ' ' -f 3
  159. + [[ 0 == 1 ]]
  160. + wget -q --delete-after 'http://localhost:8085/sabnzbd/api?mode=shutdown&ma_username=admin&ma_password=limpsite&apikey=b147235cc4489e3d0afedf6718f00947'
  161. + sleep 5
  162. + /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
  163. + '[' 1 == 1 ']'
  164. + '[' -f /i-data/md0/admin/configuration/couchpotato/couchpotato.pid ']'
  165. ++ /bin/cat /i-data/md0/admin/configuration/couchpotato/couchpotato.pid
  166. + Pid=3986
  167. + i=0
  168. + kill 3986
  169. + echo -n ' Waiting for couchpotato to shut down: '
  170. Waiting for couchpotato to shut down: + '[' -d /proc/3986 ']'
  171. + sleep 1
  172. + let i+=1
  173. + /bin/echo -n '1, '
  174. 1, + '[' 1 = 45 ']'
  175. + '[' -d /proc/3986 ']'
  176. + rm -f /i-data/md0/admin/configuration/couchpotato/couchpotato.pid
  177. + sleep 2
  178. + echo -n 'Starting couchpotato'
  179. 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
  180. + sleep 5
  181. + '[' 1 == 1 ']'
  182. + '[' -f /i-data/md0/admin/configuration/sickbeard/SickRage.pid ']'
  183. + sleep 2
  184. + echo -n 'Starting SickRage'
  185. 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
  186. + sleep 5
  187. + '[' 0 == 1 ']'
  188. + echo 'Headphones not Installed'
  189. Headphones not Installed
  190. + '[' 0 == 1 ']'
  191. + echo 'Mylar not Installed'
  192. Mylar not Installed
  193. root@nsa310:/ffp/start#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement