Spaces:
Paused
Paused
fix: exclude /etc/nginx from persist to prevent config overwrite
Browse filesThe 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>
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 |
|