From 79f4f5709d2faf23868a511c765b89693d9b2ee3 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Fri, 26 Jun 2020 20:48:23 +0200 Subject: [PATCH] move creation to the top --- apps/fail2ban.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/fail2ban.sh b/apps/fail2ban.sh index 88af3d19..f7586609 100644 --- a/apps/fail2ban.sh +++ b/apps/fail2ban.sh @@ -53,7 +53,7 @@ else print_text_in_color "$ICyan" "Installing Fail2ban..." fi -# Create missing dir +# Create $VMLOGS dir mkdir -p "$VMLOGS" ### Local variables ### @@ -67,8 +67,6 @@ do # Might enter here if no OR multiple logs already exist, tidy up any existing logs and set the correct path print_text_in_color "$ICyan" "Unexpected or non-existent logging configuration - deleting any discovered nextcloud.log files and creating a new one at $VMLOGS/nextcloud.log..." xargs rm -f <<< "$NCLOG" - # Create $VMLOGS dir - mkdir -p "$VMLOGS" # Set logging occ_command config:system:set log_type --value=file occ_command config:system:set logfile --value="$VMLOGS/nextcloud.log"