Skip to content

Commit

Permalink
letsencrypt: fix template generation
Browse files Browse the repository at this point in the history
Signed-off-by: nachoparker <[email protected]>
  • Loading branch information
nachoparker committed Oct 14, 2021
1 parent d2983a1 commit 4e790e4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions etc/library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,9 @@ install_template() {
{ bash "/usr/local/etc/ncp-templates/$template" --defaults > "$target"; } 2>&1
else
{ bash "/usr/local/etc/ncp-templates/$template" > "$target"; } 2>&1 || \
{
[[ "$3" == "--allow-fallback" ]] && \
{ bash "/usr/local/etc/ncp-templates/$template" --defaults > "$target"; } 2>&1
}
if [[ "$3" == "--allow-fallback" ]]; then
{ bash "/usr/local/etc/ncp-templates/$template" --defaults > "$target"; } 2>&1
fi
fi
} || {
echo "ERROR: Could not generate $target from template $template. Rolling back..."
Expand Down

0 comments on commit 4e790e4

Please sign in to comment.