Устранение мелких недочётов

master
serg-sg 1 year ago
parent 7bf63557ed
commit 0b6455a513

@ -1 +0,0 @@
DIST ca-espdrt-certificates-2022.11.25_root.cer 1017 BLAKE2B 06a22b5e1038d8df25b719f108ca42cd4db1585659bb398d824f26eb88798274ad3d18594be94e323a6420b65e524db73f5bc217cd0ca27726fe439a88554ca8 SHA512 b56f40cc45f6683c2fa3242bb7c51bb0ce0fd58acd3065c24c4054aab482f1477c295cc8c1437abb4664fa215e3057ec23912c49b5256ba629142cfdd142880b

@ -7,7 +7,7 @@ DESCRIPTION="Установка корневого сертификата для
HOMEPAGE="https://espd.wifi.rt.ru/settings/cert-install"
SRC_URI="
https://espd.wifi.rt.ru/docs/ca-root.crt -> ${P}_root.cer
https://espd.wifi.rt.ru/docs/ca-root.crt -> ${P}_root.crt
"
LICENSE=""
@ -22,7 +22,7 @@ S="${WORKDIR}"
CA=usr/local/share/ca-certificates
ESPD_TR_R=${P}_root.crt
ESPD_TR_R_NAME="CA Root Social Objects - PJSC \"Rostelecom\""
ESPD_TR_R_NAME="CA Root Social Objects - PJSC Rostelecom"
## Ассоциативный массив {имя сертификата:файл}
declare -A massiv
@ -30,6 +30,7 @@ massiv[${ESPD_TR_R_NAME}]=${ESPD_TR_R}
src_prepare() {
mkdir -p ${CA} || die
mv ${DISTDIR}/${A} ${CA} || die
default
}
@ -43,7 +44,7 @@ pkg_postinst() {
# to include their stuff in the db.
# However it's too overzealous when the user has custom certs in place.
# --fresh is to clean up dangling symlinks
/usr/sbin/update-ca-certificates --root "${ROOT}"
/usr/sbin/update-ca-certificates
fi
@ -79,7 +80,7 @@ pkg_prerm() {
# to include their stuff in the db.
# However it's too overzealous when the user has custom certs in place.
# --fresh is to clean up dangling symlinks
/usr/sbin/update-ca-certificates --root "${ROOT}"
/usr/sbin/update-ca-certificates --fresh
fi
nssdir=$(find /home/ -name "cert9.db")
Loading…
Cancel
Save