Minor changes
This commit is contained in:
@@ -9,7 +9,7 @@ DOMAIN_DIR=$DOMAIN_DIR
|
|||||||
CERT_DIR=$CERT_DIR
|
CERT_DIR=$CERT_DIR
|
||||||
PROXY_CONFIG_DIR=$PROXY_CONFIG_DIR
|
PROXY_CONFIG_DIR=$PROXY_CONFIG_DIR
|
||||||
|
|
||||||
# Triggers by certificate or proxy config changes
|
# Triggers by certificate or domain config changes
|
||||||
|
|
||||||
unset IFS
|
unset IFS
|
||||||
|
|
||||||
@@ -27,6 +27,12 @@ do
|
|||||||
echo "New cert created: '$DOMAIN'";
|
echo "New cert created: '$DOMAIN'";
|
||||||
echo "newcert check proxy";
|
echo "newcert check proxy";
|
||||||
/scripts/check_proxy_state.sh $DOMAIN;
|
/scripts/check_proxy_state.sh $DOMAIN;
|
||||||
|
|
||||||
|
elif [[ -f $CERT_DIR/$DOMAIN/new_certificate && ! -f $PROXY_CONFIG_DIR/new_config ]]; then
|
||||||
|
rm $CERT_DIR/$DOMAIN/new_certificate;
|
||||||
|
echo "New cert created: '$DOMAIN'";
|
||||||
|
echo "newcert check proxy";
|
||||||
|
/scripts/check_proxy_state.sh $DOMAIN;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [[ "${parent}" == "${DOMAIN_DIR}" && "${op}" == "CLOSE_WRITE,CLOSE" ]]; then
|
elif [[ "${parent}" == "${DOMAIN_DIR}" && "${op}" == "CLOSE_WRITE,CLOSE" ]]; then
|
||||||
|
Reference in New Issue
Block a user