Browse Source

Minor fix

Dennis Rodewyk 7 years ago
parent
commit
388fcd6d67
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dockerbunker.sh

+ 2 - 1
dockerbunker.sh

@@ -74,7 +74,8 @@ count=$((${#AVAILABLE_SERVICES[@]}+1))
 	&& AVAILABLE_SERVICES+=( "$restartnginx") \
 	&& count=$(($count+2))
 
-[[ $(ls -A "${CONF_DIR}"/nginx/ssl/letsencrypt/live) ]] \
+[[ -d "${CONF_DIR}"/nginx/ssl/letsencrypt/live ]] \
+	&& [[ $(ls -A "${CONF_DIR}"/nginx/ssl/letsencrypt/live) ]] \
 	&& AVAILABLE_SERVICES+=( "$renewcerts" ) && cound=$(($count+1))
 
 [[ ${#INSTALLED_SERVICES[@]} > 0 \