Skip to content

Commit 4e790e4

Browse files
committed
letsencrypt: fix template generation
Signed-off-by: nachoparker <nacho@ownyourbits.com>
1 parent d2983a1 commit 4e790e4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

etc/library.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,9 @@ install_template() {
193193
{ bash "/usr/local/etc/ncp-templates/$template" --defaults > "$target"; } 2>&1
194194
else
195195
{ bash "/usr/local/etc/ncp-templates/$template" > "$target"; } 2>&1 || \
196-
{
197-
[[ "$3" == "--allow-fallback" ]] && \
198-
{ bash "/usr/local/etc/ncp-templates/$template" --defaults > "$target"; } 2>&1
199-
}
196+
if [[ "$3" == "--allow-fallback" ]]; then
197+
{ bash "/usr/local/etc/ncp-templates/$template" --defaults > "$target"; } 2>&1
198+
fi
200199
fi
201200
} || {
202201
echo "ERROR: Could not generate $target from template $template. Rolling back..."

0 commit comments

Comments
 (0)