Answer the question
In order to leave comments, you need to log in
How can I write a bash script?
I am writing a script to check if the certificate is installed or not
#!/bin/bash
echo "++++++++++++++ Установка списков отозванных сертификатов ++++++++++++++"
vguc=$(/opt/cprocsp/bin/*/certmgr -inst -crl -store root -file vguc2.crl | egrep ErrorCode)
if [ "$(vgus)" -eq "[ErrorCode: 0x00000000]" ]; then
echo "СЕРТИФИКАТ УСТАНОВЛЕН"
else
echo "СЕРТИФИКАТ НЕ УСТАНОВЛЕН"
fi
/opt/cprocsp/bin/*/certmgr -inst -crl -store root -file vguc2.crl | egrep ErrorCode
[ErrorCode: 0x00000000]
Answer the question
In order to leave comments, you need to log in
Sense to check on the text if the completion code is erroneous?
In general, in the task it would not be bad to show the output
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question