make it pretty, grep certbot-dns

This commit is contained in:
aptalca 2024-03-04 18:33:13 -05:00
parent 970fa75e87
commit 32f72ac0b4
No known key found for this signature in database
GPG Key ID: BE36CFFB9FD85548

View File

@ -24,7 +24,7 @@ for i in "${SANED_VARS[@]}"; do
done
# Check for and install requested DNS plugins
if echo ${DOCKER_MODS} | grep -q "universal-package-install" && echo ${INSTALL_PIP_PACKAGES} | grep -q "dns"; then
if grep -q "universal-package-install" <<< "${DOCKER_MODS}" && grep -q "certbot-dns" <<< "${INSTALL_PIP_PACKAGES}"; then
echo "**** Installing requested dns plugins ****"
/etc/s6-overlay/s6-rc.d/init-mod-universal-package-install-add-package/run
/etc/s6-overlay/s6-rc.d/init-mods-package-install/run