mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 13:20:56 +02:00
replace directory check
This commit is contained in:
parent
8eae39dba1
commit
fa589e3fc9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user