#!/usr/bin/env bash set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "$ROOT_DIR" EDGE_RUNTIME_DIR="${EDGE_RUNTIME_DIR:-runtime}" ENV_FILE="${ENV_FILE:-.env}" ENV_TEMPLATE_FILE="${ENV_TEMPLATE_FILE:-.env.example}" EDGE_RUNTIME_DIR="$EDGE_RUNTIME_DIR" bash scripts/stop_edge_device_local.sh sleep 1 ENV_FILE="$ENV_FILE" ENV_TEMPLATE_FILE="$ENV_TEMPLATE_FILE" EDGE_RUNTIME_DIR="$EDGE_RUNTIME_DIR" bash scripts/start_edge_device_local.sh