tao-shen Claude Opus 4.6 commited on
Commit
4233ced
·
1 Parent(s): 3dc8487

fix: exclude /etc/nginx from persist to prevent config overwrite

Browse files

The dataset restore was overwriting /etc/nginx/nginx.conf with the
old version (containing /logs paths), overriding the Docker image's
current config (with /runlog paths). Add /etc/nginx to SAVE_EXCLUDES.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. ubuntu-server/git_sync_daemon.py +2 -0
ubuntu-server/git_sync_daemon.py CHANGED
@@ -38,6 +38,8 @@ PERSIST_DIRS = [
38
  # Paths to never touch (Docker-managed or virtual)
39
  SAVE_EXCLUDES = [
40
  "/etc/hostname", "/etc/hosts", "/etc/resolv.conf", "/etc/mtab",
 
 
41
  "*.sock", "__pycache__", "*.pyc",
42
  ]
43
 
 
38
  # Paths to never touch (Docker-managed or virtual)
39
  SAVE_EXCLUDES = [
40
  "/etc/hostname", "/etc/hosts", "/etc/resolv.conf", "/etc/mtab",
41
+ "/etc/nginx", # comes from Docker image; don't overwrite with stale config
42
+ "/etc/ssh/sshd_config",
43
  "*.sock", "__pycache__", "*.pyc",
44
  ]
45