replace directory check

This commit is contained in:
rootzoll 2020-07-18 00:27:29 +02:00
parent 8eae39dba1
commit fa589e3fc9

View File

@ -161,8 +161,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
elif [ "$1" = "link-certs" ]; then
certDirectoryExists=$(ls ${ACME_CERT_HOME} | grep -c 'certs')
if [ ${certDirectoryExists} -eq 0 ]; then
if [ ! -d "${ACME_CERT_HOME}" ]; then
echo "# no cert directory to link: ${ACME_CERT_HOME}"
exit 0
fi