[ACME] Skip inactive domains
This commit is contained in:
parent
cc0727fef3
commit
0bd03c04bd
@ -222,7 +222,7 @@ while true; do
|
|||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
# IP and webroot challenge verification #
|
# IP and webroot challenge verification #
|
||||||
SQL_DOMAINS=$(mysql --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT domain FROM domain WHERE backupmx=0" -Bs)
|
SQL_DOMAINS=$(mysql --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT domain FROM domain WHERE backupmx=0 and active=1" -Bs)
|
||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
log_f "Failed to read SQL domains, retrying in 1 minute..."
|
log_f "Failed to read SQL domains, retrying in 1 minute..."
|
||||||
sleep 1m
|
sleep 1m
|
||||||
|
Loading…
Reference in New Issue
Block a user