diff --git a/stack.sh b/stack.sh index 1d1f12e116..1803169e2d 100755 --- a/stack.sh +++ b/stack.sh @@ -1385,15 +1385,6 @@ run_phase stack extra merge_config_group $TOP_DIR/local.conf post-extra -# Run local script -# ---------------- - -# Run ``local.sh`` if it exists to perform user-managed tasks -if [[ -x $TOP_DIR/local.sh ]]; then - echo "Running user script $TOP_DIR/local.sh" - $TOP_DIR/local.sh -fi - # Sanity checks # ============= @@ -1428,6 +1419,15 @@ if is_service_enabled n-api; then fi fi +# Run local script +# ---------------- + +# Run ``local.sh`` if it exists to perform user-managed tasks +if [[ -x $TOP_DIR/local.sh ]]; then + echo "Running user script $TOP_DIR/local.sh" + $TOP_DIR/local.sh +fi + # Bash completion # ===============