Skip to content
Permalink
Browse files

updating how we calculate an api-jey

  • Loading branch information...
tssgery committed Feb 21, 2017
1 parent c3e8231 commit f991077a9d70fdc27b9e27984a2bd488bc3fada1
Showing with 2 additions and 2 deletions.
  1. +2 −2 overlay/usr/lib/inithooks/firstboot.d/90nzb
@@ -9,7 +9,7 @@ function randompass () {
randompassLength=8
fi

pass=</dev/urandom tr -dc a-f0-9 | head -c $randompassLength
pass=`</dev/urandom tr -dc a-f0-9 | head -c $randompassLength`
echo $pass
}

@@ -37,7 +37,7 @@ CONFIG=/home/nzb/.couchpotato/settings.conf
sed -i "s|SAB_APIKEY|$SAB_APIKEY|" $CONFIG
sed -i "s|SAB_NZBKEY|$SAB_NZBKEY|" $CONFIG
sed -i "s|COUCH_APIKEY|$COUCH_APIKEY|" $CONFIG
service couchpotato start
/etc/init.d/couchpotato start

# replace the keys in the SickBeard config file
service sickbeard stop

0 comments on commit f991077

Please sign in to comment.
You can’t perform that action at this time.