deploy: nexus: Add Syncthing folder marker for raw vault
This commit is contained in:
parent
bcfb618869
commit
c77a2b02b9
1 changed files with 8 additions and 0 deletions
|
|
@ -91,6 +91,14 @@ EOF
|
|||
grep -qxF 'raw/.stignore' "${vault}/.git/info/exclude" 2>/dev/null \
|
||||
|| echo 'raw/.stignore' >> "${vault}/.git/info/exclude"
|
||||
|
||||
# Syncthing folder marker: must exist on disk (locally, NOT on Git).
|
||||
# Without it, Syncthing refuses to scan (“folder marker missing”).
|
||||
mkdir -p "${vault}/raw/.stfolder"
|
||||
|
||||
# .stfolder must not be included in genome commits
|
||||
grep -qxF 'raw/.stfolder' "${vault}/.git/info/exclude" 2>/dev/null \
|
||||
|| echo 'raw/.stfolder' >> "${vault}/.git/info/exclude"
|
||||
|
||||
# ── 3. Idempotent Syncthing folder configuration (best-effort, does not block the vault) ────────
|
||||
folder_state="skipped(no api key)"
|
||||
if [[ -n "${SYNCTHING_API_KEY:-}" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue