Commit ba2ab6d
committed
fix: nodered preBuild - FileNotFoundError and PermissionError on Dockerfile write
- Fix FileNotFoundError: addons_list.yml open() was called unconditionally
before the os.path.exists() check, causing a crash on first-time setup
when addons_list.yml has not yet been generated via Options menu.
File is now only opened inside the exists() guard.
- Fix PermissionError: writing services/nodered/Dockerfile now wrapped in
try/except. If a previous build was run as sudo/root, the Dockerfile is
owned by root and the current user cannot overwrite it. The error now
prints a clear actionable message with the chown command to fix it.1 parent 3d075c4 commit ba2ab6d
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 114 | | |
118 | 115 | | |
| 116 | + | |
| 117 | + | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
| |||
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
128 | | - | |
129 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
130 | 136 | | |
131 | 137 | | |
132 | 138 | | |
| |||
0 commit comments