Skip to content

Commit

Permalink
updating how we calculate an api-jey
Browse files Browse the repository at this point in the history
  • Loading branch information
tssgery committed Feb 21, 2017
1 parent c3e8231 commit f991077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions overlay/usr/lib/inithooks/firstboot.d/90nzb
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f991077

Please sign in to comment.