Minor bugfixes.

This commit is contained in:
2021-09-03 07:12:15 +00:00
parent eb82f0a86b
commit cf8660a4f2

View File

@@ -18,12 +18,11 @@ while read dir op file
do do
parent="/"$(echo $dir|cut -d / -f2) parent="/"$(echo $dir|cut -d / -f2)
if [[ "${parent}" == "${CERT_DIR}" && "${op}" == "CLOSE_WRITE,CLOSE" ]] ; then if [[ "${parent}" == "${CERT_DIR}" && "${op}" == "CLOSE_WRITE,CLOSE" ]] ; then
DOMAIN=$(echo $dir|cut -d / -f3); DOMAIN=$(echo $dir|cut -d / -f3);
if [ -f "$CERT_DIR/new_certificate" ]; then if [ -f "$CERT_DIR/$DOMAIN/new_certificate" ]; then
echo "New cert created: '$DOMAIN'"; echo "New cert created: '$DOMAIN'";
echo "newcert check proxy"; echo "newcert check proxy";
/scripts/check_proxy_state.sh; /scripts/check_proxy_state.sh;