Commit 7020fd9
committed
fix: use correct C-Gate config keys in addon install script
cgate-install.sh wrote CommandInterface.port and EventInterface.port to
C-GateConfig.txt, but C-Gate uses command-port and event-port. C-Gate
logged "Invalid key" warnings on every startup, and any user-customized
port was silently dropped — the addon kept using C-Gate's defaults
regardless of cgate_port / cgate_event_port.
Switch to the correct documented keys, anchor the grep checks with ^…=
so comment headers in C-GateConfig.txt don't produce false-positive
matches, and strip any legacy invalid keys left over from earlier
installs.
Bumps to 1.8.2.1 parent db8cecb commit 7020fd9
4 files changed
Lines changed: 26 additions & 13 deletions
File tree
- homeassistant-addon
- rootfs/etc/cont-init.d
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 19 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
209 | 214 | | |
210 | 215 | | |
211 | 216 | | |
212 | 217 | | |
213 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
214 | 222 | | |
215 | | - | |
216 | | - | |
| 223 | + | |
| 224 | + | |
217 | 225 | | |
218 | 226 | | |
219 | 227 | | |
220 | 228 | | |
221 | | - | |
222 | | - | |
223 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
224 | 232 | | |
225 | | - | |
| 233 | + | |
226 | 234 | | |
227 | 235 | | |
228 | | - | |
229 | | - | |
230 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
231 | 239 | | |
232 | | - | |
| 240 | + | |
233 | 241 | | |
234 | 242 | | |
235 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments