mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
test link certs
This commit is contained in:
parent
fab009435e
commit
8eae39dba1
1 changed files with 8 additions and 2 deletions
|
@ -161,9 +161,15 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||
|
||||
elif [ "$1" = "link-certs" ]; then
|
||||
|
||||
certDirectoryExists=$(ls ${ACME_CERT_HOME} | grep -c 'certs')
|
||||
if [ ${certDirectoryExists} -eq 0 ]; then
|
||||
echo "# no cert directory to link: ${ACME_CERT_HOME}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
certsDirectories=$(sudo ls ${ACME_CERT_HOME})
|
||||
IFS=' ' read -ra ADDR <<< "${certsDirectories}"
|
||||
for i in "${ADDR[@]}"; do
|
||||
directoryArray=(`echo "${certsDirectories}" | tr ' ' ' '`)
|
||||
for i in "${directoryArray[@]}"; do
|
||||
echo ${i}
|
||||
done
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue