Created
September 13, 2016 21:21
-
-
Save omega8cc/50e0e7f006afe0dd6678a72c34363550 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check_update_le_ssl() { | |
if [[ "${Dom}" =~ ^(a|b|c|d|e) ]]; then | |
runDay="1" | |
elif [[ "${Dom}" =~ ^(f|g|h|i) ]]; then | |
runDay="2" | |
elif [[ "${Dom}" =~ ^(j|k|l|m) ]]; then | |
runDay="3" | |
elif [[ "${Dom}" =~ ^(n|o|p|q) ]]; then | |
runDay="4" | |
elif [[ "${Dom}" =~ ^(r|s|t|u) ]]; then | |
runDay="5" | |
elif [[ "${Dom}" =~ ^(v|w|x|y) ]]; then | |
runDay="6" | |
else | |
runDay="7" | |
fi | |
if [ "${_DOW}" = "${runDay}" ]; then | |
if [ -e "${User}/tools/le/certs/${Dom}/fullchain.pem" ]; then | |
echo "Running LE cert check via Verify task for ${Dom}" | |
run_drush8_hmr_cmd "hosting-task @${Dom} verify --force" | |
echo ${_MOMENT} >> /var/xdrago/log/le/${Dom} | |
sleep 5 | |
fi | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment