move creation to the top

This commit is contained in:
Daniel Hansson 2020-06-26 20:48:23 +02:00 committed by GitHub
parent 4329de4b04
commit 79f4f5709d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"