From 9e11e098c3346efd7cf70283df7c725e5a3e86c6 Mon Sep 17 00:00:00 2001 From: Einst Crazy Date: Tue, 29 Sep 2015 20:01:44 +0800 Subject: [PATCH] Move $DEST creation after logging setup Setup the log output before calling functions like check_path_perm_sanity that want to write out to the error log. Change-Id: I9815965257c399a48f8cf0f344814d954137aecb Closes-Bug: #1500834 --- stack.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stack.sh b/stack.sh index 01668c208b..061289053b 100755 --- a/stack.sh +++ b/stack.sh @@ -306,9 +306,6 @@ sudo mkdir -p $DEST safe_chown -R $STACK_USER $DEST safe_chmod 0755 $DEST -# Basic test for ``$DEST`` path permissions (fatal on error unless skipped) -check_path_perm_sanity ${DEST} - # Destination path for service data DATA_DIR=${DATA_DIR:-${DEST}/data} sudo mkdir -p $DATA_DIR @@ -443,6 +440,8 @@ if [[ -n "$SCREEN_LOGDIR" ]]; then fi fi +# Basic test for ``$DEST`` path permissions (fatal on error unless skipped) +check_path_perm_sanity ${DEST} # Configure Error Traps # ---------------------