Skip to content

Commit

Permalink
fix: Include new cacert.pem
Browse files Browse the repository at this point in the history
  • Loading branch information
jshridha committed Dec 12, 2021
1 parent e9369b7 commit 6d8b3b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build/root/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ wget -O /tmp/nzbget.run https://github.com/nzbget/nzbget/releases/download/v$NZB
sh /tmp/nzbget.run --destdir /usr/sbin/nzbget_bin
ln -s /usr/sbin/nzbget_bin/nzbget /usr/sbin/nzbget

# Install new certificate file
wget -O /usr/sbin/nzbget_bin/cacert.pem https://nzbget.net/info/cacert.pem

# config
####

Expand Down
3 changes: 2 additions & 1 deletion run/nobody/nzbget.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ else
fi
sed -i '/WebDir=*/ s/=.*/=${AppDir}\/webui/' /config/nzbget.conf
sed -i '/ConfigTemplate=*/ s/=.*/=${AppDir}\/webui\/nzbget.conf.template/' /config/nzbget.conf
sed -i 's/^CertStore=$/CertStore=\/etc\/ssl\/certs\/ca-certificates.crt/g' /config/nzbget.conf
sed -i 's/^CertStore=$/CertStore=\/usr\/sbin\/nzbget_bin\/cacert.pem/g' /config/nzbget.conf
sed -i 's/CertStore=\/etc\/ssl\/certs\/ca-certificates.crt/CertStore=\/usr\/sbin\/nzbget_bin\/cacert.pem/g' /config/nzbget.conf


if [[ "${nzbget_running}" == "false" ]]; then
Expand Down

0 comments on commit 6d8b3b1

Please sign in to comment.