sineverba/cfhookbash

Test if deploy.sh exists before launch it

sineverba opened this issue · 0 comments

deploy_cert() {
    local DOMAIN="${1}" KEYFILE="${2}" CERTFILE="${3}" FULLCHAINFILE="${4}" CHAINFILE="${5}" TIMESTAMP="${6}"

    if [[ -z "${ROOT_DIR}" ]];then
        rootDirectory="${PWD}/hooks/cfhookbash";
    else
        rootDirectory="${ROOT_DIR}";
    fi


#test before launch it

    . "${rootDirectory}/deploy.sh"