Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2021-10-12 22:31:48 +0300
committernachoparker <nacho@ownyourbits.com>2021-10-14 19:24:16 +0300
commit4e790e4e9e61f1e5488d329dcca9b2dfdd7881e3 (patch)
treefc694aa566531658c21e4d740d70679edf1f1b7d
parentd2983a16ea092ce300c7409ffdb999397402cbfb (diff)
letsencrypt: fix template generationv1.40.7
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rw-r--r--etc/library.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/library.sh b/etc/library.sh
index 4cfccbe4..12aff17b 100644
--- a/etc/library.sh
+++ b/etc/library.sh
@@ -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..."