Commit f1dd4693 authored by Joe Holden's avatar Joe Holden

Fix SOA sql, add dummy hooks for new functions

parent 238b0410
......@@ -112,7 +112,7 @@ function deploy_challenge {
_log "Updating SOA"
local STATEMENT="SELECT ${MYSQL_TABLEPFX}content FROM records WHERE name='${BASEDOMAIN}' AND type='SOA'"
local STATEMENT="SELECT content FROM ${MYSQL_TABLEPFX}records WHERE name='${BASEDOMAIN}' AND type='SOA'"
local SOA=$(mysql "${MYSQL_DATABASE}" -h "${MYSQL_HOSTNAME}" -u "${MYSQL_USERNAME}" -p"${MYSQL_PASSWORD}" -ss -e "${STATEMENT}")
local SOAARRAY=($SOA)
......@@ -178,4 +178,12 @@ function deploy_cert {
}
function startup_hook {
return 0
}
function exit_hook {
return 0
}
HANDLER=$1; shift; $HANDLER $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment