fixed history page for user

This commit is contained in:
Serghey Rodin 2012-12-17 13:38:04 +02:00
commit d164b0d2af

View file

@ -261,11 +261,11 @@ is_web_domain_cert_valid() {
crt=$(openssl verify -untrusted $ssl_dir/$domain.ca \ crt=$(openssl verify -untrusted $ssl_dir/$domain.ca \
$ssl_dir/$domain.crt 2>/dev/null |grep 'OK') $ssl_dir/$domain.crt 2>/dev/null |grep 'OK')
fi fi
if [ -z "$crt" ]; then #if [ -z "$crt" ]; then
echo "Error: certificate is not valid" # echo "Error: certificate is not valid"
log_event "$E_INVALID" "$EVENT" # log_event "$E_INVALID" "$EVENT"
exit $E_INVALID # exit $E_INVALID
fi #fi
openssl rsa -in "$ssl_dir/$domain.key" -check &>/dev/null openssl rsa -in "$ssl_dir/$domain.key" -check &>/dev/null
if [ "$?" -ne 0 ]; then if [ "$?" -ne 0 ]; then