Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kodi: use system cacert.pem #4051

Merged
merged 2 commits into from
Dec 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/mediacenter/kodi/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ post_makeinstall_target() {
cp -R $PKG_DIR/config/repository.kodi.game $INSTALL/usr/share/kodi/addons

mkdir -p $INSTALL/usr/share/kodi/config

ln -sf /run/libreelec/cacert.pem $INSTALL/usr/share/kodi/system/certs/cacert.pem

mkdir -p $INSTALL/usr/share/kodi/system/settings

$PKG_DIR/scripts/xml_merge.py $PKG_DIR/config/guisettings.xml \
Expand Down
5 changes: 5 additions & 0 deletions packages/mediacenter/kodi/scripts/pastekodi
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,9 @@ fi
cat_file "${KODI_ROOT}/.smb/smb.conf"
cat_file "${KODI_ROOT}/.smb/user.conf"
cat_file "/run/samba/smb.conf"
if cmp -s /etc/ssl/cacert.pem.system /run/libreelec/cacert.pem; then
cat_data "/run/libreelec/cacert.pem is default" </dev/null
else
cat_file /run/libreelec/cacert.pem "/run/libreelec/cacert.pem (modified)"
fi
) | ${OUTPUT} 2>/dev/null