Merge pull request #4101 from MilhouseVH/le92_fix_pastekodi_cmp

pastekodi: avoid cmp this is installed by system-tools [backport]
This commit is contained in:
Christian Hewitt 2020-01-08 18:55:39 +04:00 committed by GitHub
commit 5e2bc84e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,10 @@ 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
pem_sys="$(sha256sum /etc/ssl/cacert.pem.system | cut -d' ' -f1)"
pem_run="$(sha256sum /run/libreelec/cacert.pem | cut -d' ' -f1)"
if [ "${pem_sys}" = "${pem_run}" ]; then
cat_data "/run/libreelec/cacert.pem is default" </dev/null
else
cat_file /run/libreelec/cacert.pem "/run/libreelec/cacert.pem (modified)"