From 49b1b8a5ffecf004a8a93ea9b5a1b5618fbdba3b Mon Sep 17 00:00:00 2001 From: cclohmar Date: Thu, 6 Aug 2026 14:27:58 +0100 Subject: [PATCH] fix: config comes from repo clone, fix step numbering --- deploy_nvr.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/deploy_nvr.sh b/deploy_nvr.sh index c6a9478..1611234 100755 --- a/deploy_nvr.sh +++ b/deploy_nvr.sh @@ -182,7 +182,7 @@ export GOPATH="$HOME/go" export GOCACHE="$HOME/.cache/go-build" # ── 3. Clone or update repository ── -log "Step 4/6: Fetching NextNVR source..." +log "Step 3/6: Fetching NextNVR source..." if [ -d "${DEPLOY_DIR}/.git" ]; then info "Repository exists, pulling latest..." @@ -199,7 +199,7 @@ fi cd "${DEPLOY_DIR}" # ── 4. Build ── -log "Step 5/6: Building NextNVR binary..." +log "Step 4/6: Building NextNVR binary..." go mod tidy @@ -214,17 +214,16 @@ chmod +x nextnvr log "Binary built: nextnvr v${VERSION} ($(du -h nextnvr | cut -f1))" # ── 5. Configuration & directories ── -log "Step 6/6: Configuration..." +log "Step 5/6: Configuration..." +# Repo includes a default config.yaml. Only warn if it's missing. if [ ! -f "${DEPLOY_DIR}/config.yaml" ]; then - cp config.yaml "${DEPLOY_DIR}/config.yaml" - log "Default config.yaml created. Use the web UI to configure cameras and storage." -else - log "config.yaml already exists — preserved." + err "config.yaml not found in repository — deployment may fail." fi +log "Using config: ${DEPLOY_DIR}/config.yaml" # ── 6. Install service ── -log "Step 7/6: Service installation..." +log "Step 6/6: Service installation..." RUN_USER="$(whoami)" SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service"