create the acme-challenge subfolder correctly for the HTTP challenge

This commit is contained in:
Nicolas Roman 2019-07-11 15:24:17 +02:00
parent 27b449fd98
commit 78d0293b44

View file

@ -942,7 +942,7 @@ op_managehttpchallengefile() {
if [ "$action" = "create" ]; then
if [ ! -d "$folder" ]; then
mkdir "$folder"
mkdir -p "$folder"
fi
if [ ! -f "$folder/$file" ]; then
touch "$folder/$file"