Browse code

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

Einst Crazy authored on 2015/09/29 21:01:44
Showing 1 changed files
... ...
@@ -306,9 +306,6 @@ sudo mkdir -p $DEST
306 306
 safe_chown -R $STACK_USER $DEST
307 307
 safe_chmod 0755 $DEST
308 308
 
309
-# Basic test for ``$DEST`` path permissions (fatal on error unless skipped)
310
-check_path_perm_sanity ${DEST}
311
-
312 309
 # Destination path for service data
313 310
 DATA_DIR=${DATA_DIR:-${DEST}/data}
314 311
 sudo mkdir -p $DATA_DIR
... ...
@@ -443,6 +440,8 @@ if [[ -n "$SCREEN_LOGDIR" ]]; then
443 443
     fi
444 444
 fi
445 445
 
446
+# Basic test for ``$DEST`` path permissions (fatal on error unless skipped)
447
+check_path_perm_sanity ${DEST}
446 448
 
447 449
 # Configure Error Traps
448 450
 # ---------------------